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

Issue 2459583002: Use InstallDetails in setup. (Closed)

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

Description

Use InstallDetails in setup. This change brings InstallDetails to the installer with the install mode chosen on the basis of a command line switch. This makes InstallDetails and various install_static APIs usable from within the installer. A few calls to InstallUtil::IsChromeSxSProcess are also replaced with values in kBrandConstants or other more correct/clear values. BUG=373987 Review-Url: https://codereview.chromium.org/2459583002 Cr-Commit-Position: refs/heads/master@{#451769} Committed: https://chromium.googlesource.com/chromium/src/+/0f3aff7ddf7a686e87edff89a93a386f028be02b

Patch Set 1 #

Total comments: 19

Patch Set 2 : robertshield comments #

Patch Set 3 : removed BrandConstants #

Patch Set 4 : rebase onto issue 2601443002 #

Patch Set 5 : compile and test fixes #

Patch Set 6 : rebase #

Patch Set 7 : rebase #

Patch Set 8 : rebase #

Patch Set 9 : sync to position 450321 #

Patch Set 10 : compile fix #

Total comments: 15

Patch Set 11 : comment improvements #

Patch Set 12 : sync to position 451750 #

Patch Set 13 : another doc comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+669 lines, -92 lines) Patch
M chrome/install_static/chromium_install_modes.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/install_static/google_chrome_install_modes.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/install_static/install_constants.h View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/install_static/install_details.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +11 lines, -1 line 0 comments Download
M chrome/install_static/install_modes.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +11 lines, -2 lines 0 comments Download
M chrome/install_static/install_modes.cc View 1 2 3 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/install_static/install_modes_unittest.cc View 1 2 3 3 chunks +35 lines, -0 lines 0 comments Download
M chrome/install_static/install_util.h View 1 2 3 4 5 6 7 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/install_static/install_util.cc View 1 2 3 4 5 6 7 5 chunks +11 lines, -5 lines 0 comments Download
M chrome/install_static/install_util_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M chrome/install_static/user_data_dir_win_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/installer/setup/BUILD.gn View 1 2 3 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/installer/setup/DEPS View 1 2 3 4 1 chunk +7 lines, -2 lines 0 comments Download
M chrome/installer/setup/install.cc View 1 2 3 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/installer/setup/install_unittest.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +72 lines, -20 lines 0 comments Download
M chrome/installer/setup/install_worker.cc View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/installer/setup/install_worker_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M chrome/installer/setup/installer_state.cc View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M chrome/installer/setup/run_all_unittests.cc View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
A chrome/installer/setup/setup_install_details.h View 1 2 3 4 5 6 7 1 chunk +34 lines, -0 lines 0 comments Download
A chrome/installer/setup/setup_install_details.cc View 1 2 3 4 5 6 7 1 chunk +99 lines, -0 lines 0 comments Download
A chrome/installer/setup/setup_install_details_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +290 lines, -0 lines 0 comments Download
M chrome/installer/setup/setup_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +21 lines, -11 lines 0 comments Download
M chrome/installer/setup/setup_util.cc View 1 2 3 4 5 6 7 8 chunks +13 lines, -25 lines 0 comments Download
M chrome/installer/setup/setup_util_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -10 lines 0 comments Download
M chrome/installer/setup/uninstall.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 75 (60 generated)
grt (UTC plus 2)
Hi Robert. Here's the first change bringing InstallDetails into setup. Following this, I'll be able ...
4 years, 1 month ago (2016-11-02 10:16:27 UTC) #13
robertshield
lg, few thoughts https://codereview.chromium.org/2459583002/diff/60001/chrome/installer/setup/brand_constants.h File chrome/installer/setup/brand_constants.h (right): https://codereview.chromium.org/2459583002/diff/60001/chrome/installer/setup/brand_constants.h#newcode5 chrome/installer/setup/brand_constants.h:5: // Defines the struct used to ...
4 years, 1 month ago (2016-11-04 12:50:35 UTC) #18
grt (UTC plus 2)
Thanks for the comments. Responses below. https://codereview.chromium.org/2459583002/diff/60001/chrome/installer/setup/brand_constants.h File chrome/installer/setup/brand_constants.h (right): https://codereview.chromium.org/2459583002/diff/60001/chrome/installer/setup/brand_constants.h#newcode5 chrome/installer/setup/brand_constants.h:5: // Defines the ...
4 years, 1 month ago (2016-11-08 13:02:13 UTC) #19
robertshield
lgtm https://codereview.chromium.org/2459583002/diff/60001/chrome/installer/setup/install_worker.cc File chrome/installer/setup/install_worker.cc (right): https://codereview.chromium.org/2459583002/diff/60001/chrome/installer/setup/install_worker.cc#newcode1181 chrome/installer/setup/install_worker.cc:1181: if (GetBrandConstants().supported_app_launcher) On 2016/11/08 13:02:13, grt (UTC plus ...
4 years, 1 month ago (2016-11-08 22:03:40 UTC) #20
grt (UTC plus 2)
https://codereview.chromium.org/2459583002/diff/60001/chrome/installer/setup/install_worker.cc File chrome/installer/setup/install_worker.cc (right): https://codereview.chromium.org/2459583002/diff/60001/chrome/installer/setup/install_worker.cc#newcode1181 chrome/installer/setup/install_worker.cc:1181: if (GetBrandConstants().supported_app_launcher) On 2016/11/08 22:03:40, robertshield_slow_reviews wrote: > On ...
4 years, 1 month ago (2016-11-10 15:18:03 UTC) #23
grt (UTC plus 2)
Apologies for letting this sit for so long. I needed to get the multi-install removal ...
3 years, 10 months ago (2017-02-10 14:58:41 UTC) #50
grt (UTC plus 2)
gentle ping
3 years, 10 months ago (2017-02-20 13:54:38 UTC) #61
robertshield
Looks awesome, apologies for the delay last week. Few thoughts below. https://codereview.chromium.org/2459583002/diff/300001/chrome/install_static/google_chrome_install_modes.cc File chrome/install_static/google_chrome_install_modes.cc (right): ...
3 years, 10 months ago (2017-02-20 19:11:16 UTC) #62
grt (UTC plus 2)
Thanks. Responses below. https://codereview.chromium.org/2459583002/diff/300001/chrome/install_static/google_chrome_install_modes.cc File chrome/install_static/google_chrome_install_modes.cc (right): https://codereview.chromium.org/2459583002/diff/300001/chrome/install_static/google_chrome_install_modes.cc#newcode39 chrome/install_static/google_chrome_install_modes.cc:39: { On 2017/02/20 19:11:16, robertshield wrote: ...
3 years, 10 months ago (2017-02-21 13:21:16 UTC) #63
robertshield
LGTM, agree it would be nice to get GOOGLE_CHROME_BUILD tests running on the waterfall. https://codereview.chromium.org/2459583002/diff/300001/chrome/install_static/install_modes.h ...
3 years, 10 months ago (2017-02-21 14:28:20 UTC) #66
robertshield
LGTM, agree it would be nice to get GOOGLE_CHROME_BUILD tests running on the waterfall. https://codereview.chromium.org/2459583002/diff/300001/chrome/install_static/install_modes.h ...
3 years, 10 months ago (2017-02-21 14:28:20 UTC) #67
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/2459583002/360001
3 years, 10 months ago (2017-02-21 14:39:04 UTC) #70
grt (UTC plus 2)
Thanks. Bombs away! https://codereview.chromium.org/2459583002/diff/300001/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): https://codereview.chromium.org/2459583002/diff/300001/chrome/installer/setup/setup_main.cc#newcode1397 chrome/installer/setup/setup_main.cc:1397: return installer::SXS_OPTION_NOT_SUPPORTED; On 2017/02/21 14:28:20, robertshield ...
3 years, 10 months ago (2017-02-21 14:39:09 UTC) #71
commit-bot: I haz the power
Committed patchset #13 (id:360001) as https://chromium.googlesource.com/chromium/src/+/0f3aff7ddf7a686e87edff89a93a386f028be02b
3 years, 10 months ago (2017-02-21 15:53:28 UTC) #74
grt (UTC plus 2)
3 years, 9 months ago (2017-03-01 13:02:39 UTC) #75
Message was sent while issue was closed.
On 2017/02/21 14:28:20, robertshield wrote:
> LGTM, agree it would be nice to get GOOGLE_CHROME_BUILD tests running on the
> waterfall.

FYI: install_static_unittests, installer_util_unittests, and setup_unittests are
now all running on the continuous Google Chrome builders, so we at least have
coverage of this Chrome-branded code. It's not quite as good as having it in the
trybots and CQ, but it's better than nothing.

Powered by Google App Engine
This is Rietveld 408576698