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

Issue 2589753002: Remove multi-install from chrome/installer/setup. (Closed)

Created:
4 years ago by grt (UTC plus 2)
Modified:
3 years, 11 months ago
Reviewers:
gab, robertshield, jwd, huangs
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

Remove multi-install from chrome/installer/setup. This change strips InstallerState of all multi-install knowledge and trickles the change through the rest of the installer. An InstallerState now has exactly one Product on which it operates. There is substantial room for further improvement, which will come after InstallDetails is woven into setup. Various "delete old stuff" operations are also coalesced into a single post-install/update step rather than sprinkled around Chrome's install path. While at it, this change also removes some old Chrome Frame code that is no longer used (IE low rights elevation policy, GCF in use, COM DLLs) and attempts some IWYU fixes. BUG=577816 Review-Url: https://codereview.chromium.org/2589753002 Cr-Commit-Position: refs/heads/master@{#442077} Committed: https://chromium.googlesource.com/chromium/src/+/7bef10cf4c05108c03cf055c75695bbe5737bb56

Patch Set 1 #

Patch Set 2 : sync to position 439802 #

Patch Set 3 : remove is_chrome #

Patch Set 4 : revert util/product changes for now #

Total comments: 48

Patch Set 5 : gab comments #

Patch Set 6 : lint fixes #

Total comments: 28

Patch Set 7 : huangs comments #

Patch Set 8 : sync to position 441108 #

Total comments: 4

Patch Set 9 : jwd comments #

Total comments: 6

Patch Set 10 : robertshield comments #

Total comments: 2

Patch Set 11 : gab and robertshield comments #

Total comments: 24

Patch Set 12 : huangs comments #

Patch Set 13 : sync to position 442053 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+919 lines, -2925 lines) Patch
M chrome/installer/setup/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
D chrome/installer/setup/app_launcher_installer.h View 1 chunk +0 lines, -48 lines 0 comments Download
D chrome/installer/setup/app_launcher_installer.cc View 1 chunk +0 lines, -102 lines 0 comments Download
M chrome/installer/setup/install.h View 2 chunks +1 line, -7 lines 0 comments Download
M chrome/installer/setup/install.cc View 1 2 3 4 5 6 7 8 9 10 11 chunks +58 lines, -89 lines 0 comments Download
M chrome/installer/setup/install_worker.h View 5 chunks +0 lines, -57 lines 0 comments Download
M chrome/installer/setup/install_worker.cc View 1 2 3 4 5 6 7 8 9 10 11 19 chunks +128 lines, -652 lines 0 comments Download
M chrome/installer/setup/install_worker_unittest.cc View 1 2 3 4 5 6 7 8 9 10 10 chunks +13 lines, -505 lines 0 comments Download
M chrome/installer/setup/installer_crash_reporting.cc View 1 2 3 4 5 4 chunks +3 lines, -7 lines 0 comments Download
M chrome/installer/setup/installer_state.h View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +18 lines, -99 lines 0 comments Download
M chrome/installer/setup/installer_state.cc View 1 2 3 4 5 6 7 8 9 10 11 13 chunks +45 lines, -365 lines 0 comments Download
M chrome/installer/setup/installer_state_unittest.cc View 1 2 8 chunks +2 lines, -37 lines 0 comments Download
M chrome/installer/setup/setup_main.cc View 1 2 3 4 5 6 27 chunks +171 lines, -522 lines 0 comments Download
M chrome/installer/setup/setup_util.h View 1 2 chunks +4 lines, -10 lines 0 comments Download
M chrome/installer/setup/setup_util.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +173 lines, -33 lines 0 comments Download
M chrome/installer/setup/setup_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +142 lines, -1 line 0 comments Download
M chrome/installer/setup/uninstall.cc View 1 2 3 4 5 6 7 8 9 10 11 21 chunks +105 lines, -374 lines 0 comments Download
M chrome/installer/util/install_util.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/installer/util/master_preferences.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/installer/util/master_preferences_unittest.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/installer/util/util_constants.h View 5 chunks +2 lines, -8 lines 0 comments Download
M chrome/installer/util/util_constants.cc View 1 chunk +0 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +52 lines, -0 lines 0 comments Download

Messages

Total messages: 83 (62 generated)
grt (UTC plus 2)
Happy holidays!
4 years ago (2016-12-20 14:41:46 UTC) #17
gab
Woah :-O!! Mostly questions; feel free to ignore requests to split CF/AL to precursor CLs, ...
3 years, 12 months ago (2016-12-22 19:05:11 UTC) #32
grt (UTC plus 2)
Thanks! PTAL. https://codereview.chromium.org/2589753002/diff/140001/chrome/installer/setup/install.cc File chrome/installer/setup/install.cc (left): https://codereview.chromium.org/2589753002/diff/140001/chrome/installer/setup/install.cc#oldcode445 chrome/installer/setup/install.cc:445: DCHECK(product.is_chrome()); On 2016/12/22 19:05:10, gab (HOHOHO) wrote: ...
3 years, 11 months ago (2017-01-02 10:45:04 UTC) #35
grt (UTC plus 2)
+jwd for histograms OWNERS review. Thanks.
3 years, 11 months ago (2017-01-02 10:53:17 UTC) #39
huangs
My comments. Just realized that it's less work for you for us to review last ...
3 years, 11 months ago (2017-01-03 07:26:06 UTC) #43
grt (UTC plus 2)
Thanks! PTAL. https://codereview.chromium.org/2589753002/diff/180001/chrome/installer/setup/installer_state.cc File chrome/installer/setup/installer_state.cc (right): https://codereview.chromium.org/2589753002/diff/180001/chrome/installer/setup/installer_state.cc#newcode14 chrome/installer/setup/installer_state.cc:14: #include "base/logging.h" On 2017/01/03 07:26:05, huangs wrote: ...
3 years, 11 months ago (2017-01-03 13:04:31 UTC) #46
jwd
https://codereview.chromium.org/2589753002/diff/220001/chrome/installer/setup/setup_util.cc File chrome/installer/setup/setup_util.cc (right): https://codereview.chromium.org/2589753002/diff/220001/chrome/installer/setup/setup_util.cc#newcode239 chrome/installer/setup/setup_util.cc:239: UMA_HISTOGRAM_BOOLEAN("Setup.Install.AppHostRemoved", true); Is there value in capturing a failure ...
3 years, 11 months ago (2017-01-03 21:10:34 UTC) #51
grt (UTC plus 2)
Thanks for the suggestions; done. https://codereview.chromium.org/2589753002/diff/220001/chrome/installer/setup/setup_util.cc File chrome/installer/setup/setup_util.cc (right): https://codereview.chromium.org/2589753002/diff/220001/chrome/installer/setup/setup_util.cc#newcode239 chrome/installer/setup/setup_util.cc:239: UMA_HISTOGRAM_BOOLEAN("Setup.Install.AppHostRemoved", true); On 2017/01/03 ...
3 years, 11 months ago (2017-01-04 08:28:16 UTC) #54
robertshield
Sorry I haven't had time to go through this whole thing yet. I just got ...
3 years, 11 months ago (2017-01-04 14:23:18 UTC) #57
grt (UTC plus 2)
https://codereview.chromium.org/2589753002/diff/240001/chrome/installer/setup/install_worker.cc File chrome/installer/setup/install_worker.cc (right): https://codereview.chromium.org/2589753002/diff/240001/chrome/installer/setup/install_worker.cc#newcode170 chrome/installer/setup/install_worker.cc:170: WorkItemList* list) { On 2017/01/04 14:23:18, robertshield_slow_reviews wrote: > ...
3 years, 11 months ago (2017-01-05 13:08:30 UTC) #60
robertshield
Another quick pass (this is awesome by the way). https://codereview.chromium.org/2589753002/diff/240001/chrome/installer/setup/install_worker.cc File chrome/installer/setup/install_worker.cc (right): https://codereview.chromium.org/2589753002/diff/240001/chrome/installer/setup/install_worker.cc#newcode788 chrome/installer/setup/install_worker.cc:788: ...
3 years, 11 months ago (2017-01-05 14:21:00 UTC) #63
gab
Comments on comments otherwise this first pass lgtm (didn't do another full pass; I checked ...
3 years, 11 months ago (2017-01-05 22:08:01 UTC) #64
grt (UTC plus 2)
gab: Thanks! huangs, robertshield, jwd: PTAL https://codereview.chromium.org/2589753002/diff/140001/chrome/installer/setup/install.cc File chrome/installer/setup/install.cc (left): https://codereview.chromium.org/2589753002/diff/140001/chrome/installer/setup/install.cc#oldcode445 chrome/installer/setup/install.cc:445: DCHECK(product.is_chrome()); On 2017/01/05 ...
3 years, 11 months ago (2017-01-06 10:25:54 UTC) #67
jwd
lgtm
3 years, 11 months ago (2017-01-06 15:17:26 UTC) #70
robertshield
lgtm
3 years, 11 months ago (2017-01-06 15:34:00 UTC) #71
huangs
Just NITs. LGTM. https://codereview.chromium.org/2589753002/diff/280001/chrome/installer/setup/install_worker.cc File chrome/installer/setup/install_worker.cc (right): https://codereview.chromium.org/2589753002/diff/280001/chrome/installer/setup/install_worker.cc#newcode598 chrome/installer/setup/install_worker.cc:598: const base::string16 version_key = dist->GetVersionKey(); NIT: ...
3 years, 11 months ago (2017-01-06 17:57:18 UTC) #72
grt (UTC plus 2)
Thanks. Will send to CQ after syncing to ToT. https://codereview.chromium.org/2589753002/diff/280001/chrome/installer/setup/install_worker.cc File chrome/installer/setup/install_worker.cc (right): https://codereview.chromium.org/2589753002/diff/280001/chrome/installer/setup/install_worker.cc#newcode598 chrome/installer/setup/install_worker.cc:598: ...
3 years, 11 months ago (2017-01-06 21:15:47 UTC) #73
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/2589753002/320001
3 years, 11 months ago (2017-01-06 21:24:23 UTC) #76
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/132906)
3 years, 11 months ago (2017-01-06 21:51:24 UTC) #78
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/2589753002/320001
3 years, 11 months ago (2017-01-06 21:58:37 UTC) #80
commit-bot: I haz the power
3 years, 11 months ago (2017-01-06 22:40:55 UTC) #83
Message was sent while issue was closed.
Committed patchset #13 (id:320001) as
https://chromium.googlesource.com/chromium/src/+/7bef10cf4c05108c03cf055c7569...

Powered by Google App Engine
This is Rietveld 408576698