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

Issue 811283002: [Installer] Cleaning up dead code for App Launcher / App Host installs. (Closed)

Created:
6 years ago by huangs
Modified:
5 years, 10 months ago
Reviewers:
grt (UTC plus 2)
CC:
chromium-reviews, grt+watch_chromium.org, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Installer] Cleaning up dead code for App Launcher / App Host installs. The "shadow" App Launcher registry keys are still managed. The code that do this are concentrated to the new files app_launcher_installer.* to facilitate future updates. This CL also significantly reduces the size of setup.exe, presumably due to removal of dependencies. TEST=Windows only. Install and update still work as before. - Right after fresh install, ensure reg key at user level exists: Google\Update\Clients\{FDA71E6F-AC4C-4a00-8B70-9958A68906BF} BUG=297647 Committed: https://crrev.com/45817557f9fda44543d513a500eb0d74dd415ee0 Cr-Commit-Position: refs/heads/master@{#313626}

Patch Set 1 #

Total comments: 34

Patch Set 2 : Cleanups; handle ChannelInfo to remove '-apphost' and '-applauncher'. #

Total comments: 54

Patch Set 3 : Remove query-eula-acceptance; changing ChannelInfo cleanup approach. #

Total comments: 8

Patch Set 4 : Cleanup; add code to remove -apphost and -applauncher modifiers from ChannelInfo. #

Total comments: 2

Patch Set 5 : Removing ChannelInfo behavioral changes; removing inappropriate NULL check. #

Total comments: 8

Patch Set 6 : Fix missed spot in ChannelInfo; removed eula_util.*. #

Patch Set 7 : Sync and merge. #

Patch Set 8 : Update .gn file; remove TODO's. #

Total comments: 2

Patch Set 9 : Comment fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+338 lines, -1604 lines) Patch
M chrome/app/chromium_strings.grd View 1 2 3 4 5 6 4 chunks +0 lines, -12 lines 0 comments Download
M chrome/app/google_chrome_strings.grd View 1 2 3 4 5 6 4 chunks +0 lines, -12 lines 0 comments Download
M chrome/chrome_installer.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_installer_util.gypi View 1 2 3 4 5 3 chunks +0 lines, -6 lines 0 comments Download
M chrome/installer/mini_installer/appid.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/installer/mini_installer/chrome_appid.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/installer/mini_installer/configuration.h View 1 2 3 4 5 6 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/installer/mini_installer/configuration.cc View 3 chunks +2 lines, -5 lines 0 comments Download
M chrome/installer/mini_installer/mini_installer.cc View 1 2 3 4 5 6 1 chunk +1 line, -6 lines 0 comments Download
A chrome/installer/setup/app_launcher_installer.h View 1 2 3 1 chunk +58 lines, -0 lines 0 comments Download
A chrome/installer/setup/app_launcher_installer.cc View 1 2 3 1 chunk +120 lines, -0 lines 0 comments Download
M chrome/installer/setup/install.cc View 2 chunks +0 lines, -33 lines 0 comments Download
M chrome/installer/setup/install_worker.h View 1 2 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/installer/setup/install_worker.cc View 1 2 3 4 5 6 7 11 chunks +41 lines, -202 lines 0 comments Download
M chrome/installer/setup/setup_main.cc View 1 2 3 4 5 6 9 chunks +3 lines, -112 lines 0 comments Download
M chrome/installer/setup/setup_util.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/installer/setup/uninstall.cc View 1 2 3 4 5 6 9 chunks +21 lines, -78 lines 0 comments Download
M chrome/installer/util/BUILD.gn View 1 2 3 4 5 6 7 3 chunks +0 lines, -6 lines 0 comments Download
M chrome/installer/util/browser_distribution.h View 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/installer/util/browser_distribution.cc View 1 4 chunks +1 line, -14 lines 0 comments Download
M chrome/installer/util/channel_info.h View 1 2 3 4 6 chunks +10 lines, -9 lines 0 comments Download
M chrome/installer/util/channel_info.cc View 1 2 3 4 5 12 chunks +41 lines, -40 lines 0 comments Download
M chrome/installer/util/channel_info_unittest.cc View 1 2 4 2 chunks +6 lines, -5 lines 0 comments Download
D chrome/installer/util/chrome_app_host_distribution.h View 1 chunk +0 lines, -65 lines 0 comments Download
D chrome/installer/util/chrome_app_host_distribution.cc View 1 chunk +0 lines, -130 lines 0 comments Download
D chrome/installer/util/chrome_app_host_operations.h View 1 chunk +0 lines, -63 lines 0 comments Download
D chrome/installer/util/chrome_app_host_operations.cc View 1 2 3 4 5 6 1 chunk +0 lines, -134 lines 0 comments Download
M chrome/installer/util/chrome_browser_operations.cc View 1 2 3 4 5 6 1 chunk +5 lines, -1 line 0 comments Download
D chrome/installer/util/eula_util.h View 1 2 3 4 5 1 chunk +0 lines, -25 lines 0 comments Download
M chrome/installer/util/eula_util.cc View 1 2 3 4 5 1 chunk +0 lines, -95 lines 0 comments Download
M chrome/installer/util/google_chrome_distribution.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/installer/util/google_chrome_distribution.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/installer/util/google_chrome_distribution_dummy.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/installer/util/google_chrome_sxs_distribution.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/installer/util/google_chrome_sxs_distribution.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/installer/util/installation_state.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/installer/util/installation_state.cc View 1 2 3 4 5 6 2 chunks +1 line, -9 lines 0 comments Download
M chrome/installer/util/installation_validator.h View 1 2 4 chunks +0 lines, -38 lines 0 comments Download
M chrome/installer/util/installation_validator.cc View 1 2 3 4 5 6 8 chunks +11 lines, -181 lines 0 comments Download
M chrome/installer/util/installation_validator_unittest.cc View 1 2 3 4 5 6 3 chunks +0 lines, -61 lines 0 comments Download
M chrome/installer/util/installer_state.h View 2 chunks +0 lines, -7 lines 0 comments Download
M chrome/installer/util/installer_state.cc View 1 2 3 4 5 6 7 8 6 chunks +11 lines, -148 lines 0 comments Download
M chrome/installer/util/master_preferences.h View 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/installer/util/master_preferences.cc View 1 2 3 4 5 6 6 chunks +0 lines, -18 lines 0 comments Download
M chrome/installer/util/master_preferences_constants.h View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/installer/util/master_preferences_constants.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/installer/util/prebuild/create_string_rc.py View 1 2 3 4 2 chunks +1 line, -5 lines 0 comments Download
M chrome/installer/util/product.h View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/installer/util/product.cc View 1 2 3 4 5 6 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/installer/util/util_constants.h View 1 2 5 chunks +0 lines, -7 lines 0 comments Download
M chrome/installer/util/util_constants.cc View 1 2 5 chunks +0 lines, -20 lines 0 comments Download

Messages

Total messages: 26 (2 generated)
huangs
Hi Greg, here's the long-awaited cleanup! I verified the results by dumping old/new/upgrade registry changes ...
6 years ago (2014-12-18 07:16:59 UTC) #2
grt (UTC plus 2)
Hi Sam, Thanks for taking this on. I'm really excited to have this legacy code ...
6 years ago (2014-12-18 19:27:37 UTC) #3
huangs
Happy New Year! PTAL. For the ChannelInfo changes, I removed "-apphost" and "-applauncher" by direct ...
5 years, 11 months ago (2015-01-05 06:01:13 UTC) #4
huangs
Ping grt@. Thanks!
5 years, 11 months ago (2015-01-08 18:45:27 UTC) #5
grt (UTC plus 2)
On 2015/01/08 18:45:27, huangs1 wrote: > Ping grt@. Thanks! I'm still here (but home sick)! ...
5 years, 11 months ago (2015-01-08 18:59:09 UTC) #6
grt (UTC plus 2)
a smattering of comments. still working on it. https://codereview.chromium.org/811283002/diff/1/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): https://codereview.chromium.org/811283002/diff/1/chrome/installer/setup/setup_main.cc#newcode401 chrome/installer/setup/setup_main.cc:401: } ...
5 years, 11 months ago (2015-01-08 21:41:49 UTC) #7
grt (UTC plus 2)
a few more comments https://codereview.chromium.org/811283002/diff/20001/chrome/installer/setup/uninstall.cc File chrome/installer/setup/uninstall.cc (right): https://codereview.chromium.org/811283002/diff/20001/chrome/installer/setup/uninstall.cc#newcode1148 chrome/installer/setup/uninstall.cc:1148: if (!InstallUtil::IsChromeSxSProcess()) { nit: no ...
5 years, 11 months ago (2015-01-09 18:57:04 UTC) #8
huangs
Updated, with some notes: - Didn't remove app_launcher_installer yet, will do so if you insist. ...
5 years, 11 months ago (2015-01-18 01:18:24 UTC) #9
grt (UTC plus 2)
Thanks for continuing to plug away at this, Sam! https://chromiumcodereview.appspot.com/811283002/diff/20001/chrome/installer/setup/app_launcher_installer.h File chrome/installer/setup/app_launcher_installer.h (right): https://chromiumcodereview.appspot.com/811283002/diff/20001/chrome/installer/setup/app_launcher_installer.h#newcode29 chrome/installer/setup/app_launcher_installer.h:29: ...
5 years, 11 months ago (2015-01-20 21:30:23 UTC) #10
huangs
Updated. A bit confused with the ChannelInfo comments and what to do with ChromeBrowserOperations::SetChannelFlags(). PTAL. ...
5 years, 11 months ago (2015-01-20 23:26:01 UTC) #11
grt (UTC plus 2)
https://chromiumcodereview.appspot.com/811283002/diff/20001/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): https://chromiumcodereview.appspot.com/811283002/diff/20001/chrome/installer/setup/setup_main.cc#newcode682 chrome/installer/setup/setup_main.cc:682: if (!binaries_state) On 2015/01/20 21:30:22, grt wrote: > On ...
5 years, 11 months ago (2015-01-21 02:18:12 UTC) #12
huangs
Updated, PTAL. https://chromiumcodereview.appspot.com/811283002/diff/20001/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): https://chromiumcodereview.appspot.com/811283002/diff/20001/chrome/installer/setup/setup_main.cc#newcode682 chrome/installer/setup/setup_main.cc:682: if (!binaries_state) Per discussion, no need to ...
5 years, 11 months ago (2015-01-21 20:33:52 UTC) #13
huangs
Ping grt@.
5 years, 11 months ago (2015-01-23 19:56:37 UTC) #14
grt (UTC plus 2)
looks good. please make these final changes, address the TODOs you left for yourself, and ...
5 years, 11 months ago (2015-01-27 14:51:50 UTC) #15
huangs
Still need to sync, then update /chrome/installer/util/BUILD.gn. https://chromiumcodereview.appspot.com/811283002/diff/80001/chrome/installer/setup/install_worker.cc File chrome/installer/setup/install_worker.cc (right): https://chromiumcodereview.appspot.com/811283002/diff/80001/chrome/installer/setup/install_worker.cc#newcode299 chrome/installer/setup/install_worker.cc:299: if (p.is_chrome_binaries()) ...
5 years, 10 months ago (2015-01-28 17:43:53 UTC) #16
grt (UTC plus 2)
lgtm with a comment nit https://codereview.chromium.org/811283002/diff/140001/chrome/installer/util/installer_state.cc File chrome/installer/util/installer_state.cc (left): https://codereview.chromium.org/811283002/diff/140001/chrome/installer/util/installer_state.cc#oldcode275 chrome/installer/util/installer_state.cc:275: // Initial, over, and ...
5 years, 10 months ago (2015-01-28 20:34:07 UTC) #17
Will Harris
On 2015/01/28 20:34:07, grt wrote: > lgtm with a comment nit > > https://codereview.chromium.org/811283002/diff/140001/chrome/installer/util/installer_state.cc > ...
5 years, 10 months ago (2015-01-28 20:43:25 UTC) #18
huangs
Updated, also added TEST=. https://chromiumcodereview.appspot.com/811283002/diff/140001/chrome/installer/util/installer_state.cc File chrome/installer/util/installer_state.cc (left): https://chromiumcodereview.appspot.com/811283002/diff/140001/chrome/installer/util/installer_state.cc#oldcode275 chrome/installer/util/installer_state.cc:275: // Initial, over, and un-installs ...
5 years, 10 months ago (2015-01-28 21:06:58 UTC) #19
grt (UTC plus 2)
On 2015/01/28 21:06:58, huangs1 wrote: > Updated, also added TEST=. > > https://chromiumcodereview.appspot.com/811283002/diff/140001/chrome/installer/util/installer_state.cc > File ...
5 years, 10 months ago (2015-01-28 21:09:06 UTC) #20
Will Harris
On 2015/01/28 21:09:06, grt wrote: > On 2015/01/28 21:06:58, huangs1 wrote: > > Updated, also ...
5 years, 10 months ago (2015-01-28 21:37:48 UTC) #21
huangs
Think I did enough tests (Chrome installed by command line, using --do_not_launch_chrome): 1. Do the ...
5 years, 10 months ago (2015-01-28 22:57:03 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/811283002/160001
5 years, 10 months ago (2015-01-28 22:58:10 UTC) #24
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 10 months ago (2015-01-29 00:00:57 UTC) #25
commit-bot: I haz the power
5 years, 10 months ago (2015-01-29 00:03:10 UTC) #26
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/45817557f9fda44543d513a500eb0d74dd415ee0
Cr-Commit-Position: refs/heads/master@{#313626}

Powered by Google App Engine
This is Rietveld 408576698