Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1237)

Issue 2476573004: Use InstallDetails in installer_util. (Closed)

Created:
4 years, 1 month ago by grt (UTC plus 2)
Modified:
3 years, 10 months ago
Reviewers:
gab, Peter Kasting
CC:
chromium-reviews, grt+watch_chromium.org, pennymac+watch_chromium.org, asvitkine+watch_chromium.org, wfh+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use InstallDetails in installer_util. This change removes the following functionality in install_util that is now performed once during startup in chrome_elf or setup.exe: - ChannelInfo::GetChannelName - InstallUtil::IsPerUserInstall - InstallUtil::IsMultiInstall - InstallUtil::IsChromeSxSProcess The latter three functions now simply return the values held in the process's InstallDetails instance, which is valid in both chrome and setup. The same is true for GoogleUpdateSettings::GetChromeChannel and GoogleUpdateSettings::GetChromeChannelAndModifiers. Finally, the CHROME_PROBED_PROGRAM_FILES_PATH environment variable hack to make IsPerUserInstall work in sandboxed procs has been removed, as SHGetFolderPath is no longer used to determine whether or not Chrome is running from within C:\Program Files{, (x86)}. BUG=373987 Review-Url: https://codereview.chromium.org/2476573004 Cr-Commit-Position: refs/heads/master@{#452431} Committed: https://chromium.googlesource.com/chromium/src/+/4cd293b2e7387f6085c1b188aea86bd744fd9f69

Patch Set 1 #

Patch Set 2 : fix unit_tests #

Patch Set 3 : fix unit_tests #

Patch Set 4 : fix unit_tests #

Patch Set 5 : simplified #

Patch Set 6 : removed dead code #

Patch Set 7 : rebase onto multi-install removal #

Patch Set 8 : sync to position 450321 #

Patch Set 9 : sync to position 450321 #

Total comments: 12

Patch Set 10 : compile fix #

Patch Set 11 : gab comments #

Patch Set 12 : sync to position 451750 #

Patch Set 13 : sync to position 451835 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -568 lines) Patch
M chrome/browser/google/google_update_win_unittest.cc View 1 2 3 4 5 6 7 3 chunks +4 lines, -1 line 0 comments Download
M chrome/install_static/install_util_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/install_static/test/scoped_install_details.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/installer/util/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/installer/util/DEPS View 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/util/beacons_unittest.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +52 lines, -64 lines 0 comments Download
M chrome/installer/util/channel_info.h View 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/installer/util/channel_info.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +0 lines, -76 lines 0 comments Download
M chrome/installer/util/channel_info_unittest.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -107 lines 0 comments Download
M chrome/installer/util/google_update_settings.cc View 1 2 3 4 5 6 7 4 chunks +5 lines, -30 lines 0 comments Download
M chrome/installer/util/google_update_settings_unittest.cc View 1 2 3 4 5 6 7 8 9 8 chunks +26 lines, -157 lines 0 comments Download
M chrome/installer/util/install_util.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/installer/util/install_util.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +10 lines, -85 lines 0 comments Download
M chrome/installer/util/install_util_unittest.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -33 lines 0 comments Download
M chrome/installer/util/run_all_unittests.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 79 (70 generated)
grt (UTC plus 2)
Hiya, Gab. Do you have cycles for this?
3 years, 10 months ago (2017-02-14 12:13:36 UTC) #39
gab
lgtm w/ comments (and I now finally understand the purpose of install_static -- it's a ...
3 years, 10 months ago (2017-02-14 16:57:56 UTC) #50
grt (UTC plus 2)
Thanks. Comments addressed. https://codereview.chromium.org/2476573004/diff/220001/chrome/installer/util/beacons_unittest.cc File chrome/installer/util/beacons_unittest.cc (left): https://codereview.chromium.org/2476573004/diff/220001/chrome/installer/util/beacons_unittest.cc#oldcode282 chrome/installer/util/beacons_unittest.cc:282: // Disabled for now since InstallUtil::IsChromeSxSProcess ...
3 years, 10 months ago (2017-02-14 21:04:24 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2476573004/300001
3 years, 10 months ago (2017-02-22 10:49:38 UTC) #69
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/369946)
3 years, 10 months ago (2017-02-22 10:56:29 UTC) #71
grt (UTC plus 2)
+pkasting for chrome/browser/google/google_update_win_unittest.cc OWNERS stamp. Thanks.
3 years, 10 months ago (2017-02-22 11:05:47 UTC) #73
Peter Kasting
RS LGTM
3 years, 10 months ago (2017-02-23 01:33:12 UTC) #74
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2476573004/300001
3 years, 10 months ago (2017-02-23 07:16:06 UTC) #76
commit-bot: I haz the power
3 years, 10 months ago (2017-02-23 08:12:59 UTC) #79
Message was sent while issue was closed.
Committed patchset #13 (id:300001) as
https://chromium.googlesource.com/chromium/src/+/4cd293b2e7387f6085c1b188aea8...

Powered by Google App Engine
This is Rietveld 408576698