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

Issue 6588003: Add support for the quick-enable-cf command to the installer. This encompase... (Closed)

Created:
9 years, 10 months ago by grt (UTC plus 2)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Add support for the quick-enable-cf command to the installer. This encompases: - Adding facilities for new-style Google Update commands (ProductCommand, ProductCommands) - Adding support to the validator to validate the quick-enable-cf command - Adding juju to the installation and uninstallation flows to put the command into place when installing/upgrading Chrome in multi-install mode when CF is either not installed or is in ready-mode, and making sure the command is not there when Chrome Frame is installed. BUG=none TEST=Install Chrome in multi-install mode and see if the Google Update version key for the binaries (app guid {4DC8B4CA-1BDA-483e-B5FA-D3C12E15B62D}) contains a key named "quick-enable-cf" that has a CommandLine value indicating setup.exe w/ --multi-install [ --system-level ] --quick-enable-cf, a SendsPings value of 1, and a WebAccessible value of 1. Then try the other variations, like install CF in ready-mode and make sure that quick-enable-cf is still there. Make sure that installing CF causes it to be removed, etc. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=76783

Patch Set 1 : '' #

Total comments: 23

Patch Set 2 : '' #

Total comments: 10

Patch Set 3 : '' #

Total comments: 2

Patch Set 4 : '' #

Total comments: 4

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1365 lines, -109 lines) Patch
M chrome/chrome_installer_util.gypi View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/installer/setup/chrome_frame_quick_enable.cc View 1 2 3 3 chunks +10 lines, -2 lines 0 comments Download
M chrome/installer/setup/install_worker.h View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/installer/setup/install_worker.cc View 1 2 3 2 chunks +138 lines, -0 lines 0 comments Download
M chrome/installer/setup/install_worker_unittest.cc View 1 2 3 4 6 chunks +370 lines, -12 lines 0 comments Download
M chrome/installer/setup/setup_main.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/installer/setup/uninstall.cc View 1 2 3 5 chunks +31 lines, -17 lines 0 comments Download
A chrome/installer/util/app_command.h View 1 2 3 1 chunk +66 lines, -0 lines 0 comments Download
A chrome/installer/util/app_command.cc View 1 2 1 chunk +88 lines, -0 lines 0 comments Download
A chrome/installer/util/app_commands.h View 1 2 1 chunk +75 lines, -0 lines 0 comments Download
A chrome/installer/util/app_commands.cc View 1 2 1 chunk +91 lines, -0 lines 0 comments Download
M chrome/installer/util/google_update_constants.h View 1 2 3 1 chunk +15 lines, -8 lines 0 comments Download
M chrome/installer/util/google_update_constants.cc View 1 2 3 1 chunk +14 lines, -9 lines 0 comments Download
M chrome/installer/util/install_util.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/installer/util/installation_state.h View 1 2 3 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/installer/util/installation_state.cc View 1 2 3 3 chunks +17 lines, -0 lines 0 comments Download
M chrome/installer/util/installation_validator.h View 1 2 3 6 chunks +29 lines, -0 lines 0 comments Download
M chrome/installer/util/installation_validator.cc View 1 2 3 10 chunks +139 lines, -6 lines 0 comments Download
M chrome/installer/util/installation_validator_unittest.cc View 1 2 3 13 chunks +245 lines, -52 lines 0 comments Download
M chrome/installer/util/util_constants.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/installer/util/util_constants.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
grt (UTC plus 2)
Gents, Please have an early look at this CL. It requires http://codereview.chromium.org/6598065/, so it won't ...
9 years, 9 months ago (2011-03-01 21:20:22 UTC) #1
tommi (sloooow) - chröme
great! I'm going to go over it again tomorrow as it's a sizable changelist, but ...
9 years, 9 months ago (2011-03-01 23:33:12 UTC) #2
robertshield
just nits from me. LG, pending an answer to Tommi's question about user vs system ...
9 years, 9 months ago (2011-03-02 14:58:57 UTC) #3
erikwright (departed)
Also, the Omaha team has asked to use the term AppCommand instead of ProductCommand. http://codereview.chromium.org/6588003/diff/7050/chrome/installer/setup/install_worker.cc ...
9 years, 9 months ago (2011-03-02 15:18:16 UTC) #4
grt (UTC plus 2)
Thanks for the feedback. PTAL. I will likely upload two additional updates to this CL: ...
9 years, 9 months ago (2011-03-02 19:48:28 UTC) #5
tommi (sloooow) - chröme
lgtm http://codereview.chromium.org/6588003/diff/7050/chrome/installer/setup/install_worker.cc File chrome/installer/setup/install_worker.cc (right): http://codereview.chromium.org/6588003/diff/7050/chrome/installer/setup/install_worker.cc#newcode907 chrome/installer/setup/install_worker.cc:907: void AddQuickEnableWorkItems(const InstallerState& installer_state, On 2011/03/02 19:48:28, grt ...
9 years, 9 months ago (2011-03-02 20:30:58 UTC) #6
erikwright (departed)
LGTM WRT matching my changes to Omaha. Will let the others opine on the other ...
9 years, 9 months ago (2011-03-02 20:36:19 UTC) #7
grt (UTC plus 2)
http://codereview.chromium.org/6588003/diff/7050/chrome/installer/setup/install_worker.cc File chrome/installer/setup/install_worker.cc (right): http://codereview.chromium.org/6588003/diff/7050/chrome/installer/setup/install_worker.cc#newcode907 chrome/installer/setup/install_worker.cc:907: void AddQuickEnableWorkItems(const InstallerState& installer_state, On 2011/03/02 20:30:58, tommi wrote: ...
9 years, 9 months ago (2011-03-02 20:44:47 UTC) #8
tommi (sloooow) - chröme
sounds good. lgtm++ On Wed, Mar 2, 2011 at 3:44 PM, <grt@chromium.org> wrote: > > ...
9 years, 9 months ago (2011-03-02 20:54:49 UTC) #9
robertshield
LGTM. New install_worker.cc logic is a lot easier to follow. Some nits on the comments: ...
9 years, 9 months ago (2011-03-02 20:58:04 UTC) #10
grt (UTC plus 2)
Comments address, thanks. I've also uploaded an update with the ProductCommand -> AppCommand rename. Now ...
9 years, 9 months ago (2011-03-02 21:06:37 UTC) #11
tommi (sloooow) - chröme
http://codereview.chromium.org/6588003/diff/57/chrome/installer/util/app_command.h File chrome/installer/util/app_command.h (right): http://codereview.chromium.org/6588003/diff/57/chrome/installer/util/app_command.h#newcode56 chrome/installer/util/app_command.h:56: std::wstring command_line_; should we be using CommandLine and not ...
9 years, 9 months ago (2011-03-02 21:13:03 UTC) #12
grt (UTC plus 2)
http://codereview.chromium.org/6588003/diff/57/chrome/installer/util/app_command.h File chrome/installer/util/app_command.h (right): http://codereview.chromium.org/6588003/diff/57/chrome/installer/util/app_command.h#newcode56 chrome/installer/util/app_command.h:56: std::wstring command_line_; On 2011/03/02 21:13:03, tommi wrote: > should ...
9 years, 9 months ago (2011-03-02 21:41:34 UTC) #13
tommi (sloooow) - chröme
The only benefit is that it is *the class* for command lines. Same as FilePath ...
9 years, 9 months ago (2011-03-02 21:49:23 UTC) #14
tommi (sloooow) - chröme
actually, I'm not entirely correct here. The CommandLine constructor accepts a FilePath and not wstring. ...
9 years, 9 months ago (2011-03-02 22:04:37 UTC) #15
grt (UTC plus 2)
On 2011/03/02 22:04:37, tommi wrote: > actually, I'm not entirely correct here. The CommandLine constructor ...
9 years, 9 months ago (2011-03-03 01:33:07 UTC) #16
tommi (sloooow) - chröme
sgtm. On Wed, Mar 2, 2011 at 8:33 PM, <grt@chromium.org> wrote: > On 2011/03/02 22:04:37, ...
9 years, 9 months ago (2011-03-03 02:39:01 UTC) #17
grt (UTC plus 2)
This update includes new GMock-based tests in install_worker_unittest.cc to test the implementation of AddQuickEnableWorkItems. Everything ...
9 years, 9 months ago (2011-03-03 18:54:06 UTC) #18
tommi (sloooow) - chröme
lgtm
9 years, 9 months ago (2011-03-03 19:21:44 UTC) #19
robertshield
LGTM http://codereview.chromium.org/6588003/diff/13001/chrome/installer/setup/install_worker_unittest.cc File chrome/installer/setup/install_worker_unittest.cc (right): http://codereview.chromium.org/6588003/diff/13001/chrome/installer/setup/install_worker_unittest.cc#newcode172 chrome/installer/setup/install_worker_unittest.cc:172: install_path.Append(installer::kSetupExe)); don't you also need to add a ...
9 years, 9 months ago (2011-03-03 19:32:26 UTC) #20
grt (UTC plus 2)
9 years, 9 months ago (2011-03-03 19:38:44 UTC) #21
http://codereview.chromium.org/6588003/diff/13001/chrome/installer/setup/inst...
File chrome/installer/setup/install_worker_unittest.cc (right):

http://codereview.chromium.org/6588003/diff/13001/chrome/installer/setup/inst...
chrome/installer/setup/install_worker_unittest.cc:172:
install_path.Append(installer::kSetupExe));
On 2011/03/03 19:32:26, robertshield wrote:
> don't you also need to add a --uninstall switch here or is that added
elsewhere?

Nice catch!  Done.

http://codereview.chromium.org/6588003/diff/13001/chrome/installer/setup/inst...
chrome/installer/setup/install_worker_unittest.cc:205:
install_path.Append(installer::kSetupExe));
On 2011/03/03 19:32:26, robertshield wrote:
> ditto

Done.

Powered by Google App Engine
This is Rietveld 408576698