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

Issue 10957016: Ensuring Google Update at user-level is installed alongside App Host, for the quick-enable App Host… (Closed)

Created:
8 years, 3 months ago by huangs
Modified:
8 years, 2 months ago
CC:
chromium-reviews, grt+watch_chromium.org
Visibility:
Public.

Description

Ensuring Google Update at user-level is installed alongside App Host, for the quick-enable App Host flow 1. Added new switch to setup.exe: --ensure-google-update-installed. 2. When invoked, if user-level Google Update is not installed, then it executes: GoogleUpdateSetup.exe /install "runtime=true&needsadmin=false" /silent to install user-level Google Update, using GoogleUpdateSetup.exe from system-level install. 3. The --ensure-google-update-installed switch is added to the quick-enable-application-host command. Caveats: - We are not validating Google Setup install from setup.exe, since it is launched as a separate process. BUG=138320 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=158962

Patch Set 1 #

Total comments: 42

Patch Set 2 : Fixes; moved switch checks; moved UninstallGoogleUpdate() and refactored with EnsureUserLevelGoogle… #

Total comments: 56

Patch Set 3 : Removing time-out, and wait for Google Update to install; moving flag to InstallerState; adding to … #

Total comments: 18

Patch Set 4 : Factoring Google Update execution code, since base::TimeDelta::FromMilliseconds(INFINITE) can be us… #

Total comments: 2

Patch Set 5 : Fixing unit tests. #

Total comments: 4

Patch Set 6 : Fixing nits. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -54 lines) Patch
M chrome/chrome_installer_util.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/installer/setup/install_worker.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/installer/setup/setup_main.cc View 1 2 3 4 8 chunks +35 lines, -44 lines 0 comments Download
M chrome/installer/util/google_update_constants.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/installer/util/google_update_constants.cc View 1 2 chunks +3 lines, -0 lines 0 comments Download
A chrome/installer/util/google_update_util.h View 1 2 3 4 5 1 chunk +24 lines, -0 lines 2 comments Download
A chrome/installer/util/google_update_util.cc View 1 2 3 4 5 1 chunk +134 lines, -0 lines 0 comments Download
M chrome/installer/util/installation_validator.cc View 1 2 2 chunks +9 lines, -7 lines 0 comments Download
M chrome/installer/util/installation_validator_unittest.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/installer/util/installer_state.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/installer/util/installer_state.cc View 1 2 3 chunks +7 lines, -2 lines 0 comments Download
M chrome/installer/util/util_constants.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M chrome/installer/util/util_constants.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
huangs
Please review my preliminary changes. https://codereview.chromium.org/10957016/diff/1/chrome/installer/util/google_update_util.cc File chrome/installer/util/google_update_util.cc (right): https://codereview.chromium.org/10957016/diff/1/chrome/installer/util/google_update_util.cc#newcode30 chrome/installer/util/google_update_util.cc:30: &path_str) == ERROR_SUCCESS) && ...
8 years, 3 months ago (2012-09-20 15:24:54 UTC) #1
grt (UTC plus 2)
looks good. i have mostly some nits for you. https://codereview.chromium.org/10957016/diff/1/chrome/installer/setup/install_worker.cc File chrome/installer/setup/install_worker.cc (right): https://codereview.chromium.org/10957016/diff/1/chrome/installer/setup/install_worker.cc#newcode1550 chrome/installer/setup/install_worker.cc:1550: ...
8 years, 3 months ago (2012-09-20 17:58:50 UTC) #2
erikwright (departed)
https://codereview.chromium.org/10957016/diff/1/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): https://codereview.chromium.org/10957016/diff/1/chrome/installer/setup/setup_main.cc#newcode743 chrome/installer/setup/setup_main.cc:743: message_id = IDS_INSTALL_HIGHER_VERSION_APP_HOST_BASE; I think that this message is ...
8 years, 3 months ago (2012-09-20 18:00:01 UTC) #3
huangs
Please take another look. I did more refactoring than expected, so gonna try jobs, too! ...
8 years, 3 months ago (2012-09-21 01:43:14 UTC) #4
erikwright (departed)
Question for Greg. https://codereview.chromium.org/10957016/diff/4002/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): https://codereview.chromium.org/10957016/diff/4002/chrome/installer/setup/setup_main.cc#newcode481 chrome/installer/setup/setup_main.cc:481: const CommandLine& cmd_line, Rather than introducing ...
8 years, 3 months ago (2012-09-21 13:11:11 UTC) #5
erikwright (departed)
https://codereview.chromium.org/10957016/diff/4002/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): https://codereview.chromium.org/10957016/diff/4002/chrome/installer/setup/setup_main.cc#newcode510 chrome/installer/setup/setup_main.cc:510: << " is enabled for user-level only."; enabled -> ...
8 years, 3 months ago (2012-09-21 14:08:49 UTC) #6
grt (UTC plus 2)
https://codereview.chromium.org/10957016/diff/4002/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): https://codereview.chromium.org/10957016/diff/4002/chrome/installer/setup/setup_main.cc#newcode481 chrome/installer/setup/setup_main.cc:481: const CommandLine& cmd_line, On 2012/09/21 13:11:11, erikwright wrote: > ...
8 years, 3 months ago (2012-09-21 14:20:33 UTC) #7
huangs
Please check again. Main Caveat: - Now EnsureUserLevelGoogleUpdatePresent() waits indefinitely. - Should not use WaitForExitCodeWithTimeout(): ...
8 years, 3 months ago (2012-09-21 18:48:43 UTC) #8
erikwright (departed)
https://codereview.chromium.org/10957016/diff/12017/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): https://codereview.chromium.org/10957016/diff/12017/chrome/installer/setup/setup_main.cc#newcode767 chrome/installer/setup/setup_main.cc:767: if (installer_state.ensure_google_update_present()) { Skip this if system level. i.e., ...
8 years, 3 months ago (2012-09-21 19:10:06 UTC) #9
huangs
Turns out WaitForExitCode() calls: bool success = WaitForExitCodeWithTimeout( handle, exit_code, base::TimeDelta::FromMilliseconds(INFINITE)); and then frees the ...
8 years, 3 months ago (2012-09-21 19:40:10 UTC) #10
huangs
Please take another look. https://codereview.chromium.org/10957016/diff/12017/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): https://codereview.chromium.org/10957016/diff/12017/chrome/installer/setup/setup_main.cc#newcode767 chrome/installer/setup/setup_main.cc:767: if (installer_state.ensure_google_update_present()) { On 2012/09/21 ...
8 years, 3 months ago (2012-09-21 19:45:17 UTC) #11
erikwright (departed)
LGTM with nit. https://codereview.chromium.org/10957016/diff/1013/chrome/installer/util/google_update_util.cc File chrome/installer/util/google_update_util.cc (right): https://codereview.chromium.org/10957016/diff/1013/chrome/installer/util/google_update_util.cc#newcode89 chrome/installer/util/google_update_util.cc:89: // The GetExitCodeProcess failed. "The wait ...
8 years, 3 months ago (2012-09-21 19:56:29 UTC) #12
huangs
OWNER review request to ben@, for chrome/chrome_installer_util.gypi Thanks!
8 years, 3 months ago (2012-09-21 20:03:22 UTC) #13
huangs
Please check again. A broken unit test was fixed. https://codereview.chromium.org/10957016/diff/1013/chrome/installer/util/google_update_util.cc File chrome/installer/util/google_update_util.cc (right): https://codereview.chromium.org/10957016/diff/1013/chrome/installer/util/google_update_util.cc#newcode89 chrome/installer/util/google_update_util.cc:89: ...
8 years, 3 months ago (2012-09-23 00:13:53 UTC) #14
erikwright (departed)
Still LGTM.
8 years, 3 months ago (2012-09-23 00:56:29 UTC) #15
huangs
Pinging ben@ for OWNER review.
8 years, 3 months ago (2012-09-24 15:07:07 UTC) #16
grt (UTC plus 2)
lgtm w/ two nits which i leave up to you. https://codereview.chromium.org/10957016/diff/4017/chrome/installer/util/google_update_util.cc File chrome/installer/util/google_update_util.cc (right): https://codereview.chromium.org/10957016/diff/4017/chrome/installer/util/google_update_util.cc#newcode28 ...
8 years, 3 months ago (2012-09-24 15:23:39 UTC) #17
huangs
Done! https://codereview.chromium.org/10957016/diff/4017/chrome/installer/util/google_update_util.cc File chrome/installer/util/google_update_util.cc (right): https://codereview.chromium.org/10957016/diff/4017/chrome/installer/util/google_update_util.cc#newcode28 chrome/installer/util/google_update_util.cc:28: // Returns true iff Google Update is present ...
8 years, 3 months ago (2012-09-24 15:50:59 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/huangs@chromium.org/10957016/10006
8 years, 2 months ago (2012-09-25 15:07:32 UTC) #19
commit-bot: I haz the power
Presubmit check for 10957016-10006 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 2 months ago (2012-09-25 15:07:45 UTC) #20
huangs
OWNER review request to brettw@; looks like ben@ is busy. Thanks!
8 years, 2 months ago (2012-09-26 18:05:01 UTC) #21
brettw
lgtm rubberstamp https://codereview.chromium.org/10957016/diff/10006/chrome/installer/util/google_update_util.h File chrome/installer/util/google_update_util.h (right): https://codereview.chromium.org/10957016/diff/10006/chrome/installer/util/google_update_util.h#newcode14 chrome/installer/util/google_update_util.h:14: bool EnsureUserLevelGoogleUpdatePresent(); I'm not very familiar with ...
8 years, 2 months ago (2012-09-26 18:17:32 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/huangs@chromium.org/10957016/10006
8 years, 2 months ago (2012-09-26 18:30:19 UTC) #23
erikwright (departed)
https://codereview.chromium.org/10957016/diff/10006/chrome/installer/util/google_update_util.h File chrome/installer/util/google_update_util.h (right): https://codereview.chromium.org/10957016/diff/10006/chrome/installer/util/google_update_util.h#newcode14 chrome/installer/util/google_update_util.h:14: bool EnsureUserLevelGoogleUpdatePresent(); On 2012/09/26 18:17:32, brettw wrote: > I'm ...
8 years, 2 months ago (2012-09-26 18:35:29 UTC) #24
commit-bot: I haz the power
Retried try job too often for step(s) browser_tests
8 years, 2 months ago (2012-09-26 20:24:17 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/huangs@chromium.org/10957016/10006
8 years, 2 months ago (2012-09-27 00:08:58 UTC) #26
commit-bot: I haz the power
Change committed as 158962
8 years, 2 months ago (2012-09-27 01:59:52 UTC) #27
Ben Goodger (Google)
8 years, 2 months ago (2012-09-27 16:22:03 UTC) #28
lgtm

Powered by Google App Engine
This is Rietveld 408576698