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

Issue 8517012: Add support for --critical-update-version to installer. (Closed)

Created:
9 years, 1 month ago by grt (UTC plus 2)
Modified:
9 years, 1 month ago
Reviewers:
Finnur, robertshield
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Add support for --critical-update-version to installer. The installer may now be given a --critical-update-version=W.X.Y.Z option on the command line. If this is present for an in-use update and the indicated version is newer than the in-use Chrome, a new "cpv" value is dropped in the registry alongside "opv" and "cmd" (the other state associated with an in-use update). Thanks to Finnur, Chrome will eventually notice that there's a pending critical update and do magical things to keep our users safe and secure. Go users! Other things I did while I was at it: - switched version string conversions from UTF8ToWide to ASCIIToWide since version numbers are always ASCII dotted numbers. - renamed the reg value from "CriticalUpdate" to "cpv" so it fits in nicely with the other cryptic values in the product's Clients key (a.k.a. Version key). BUG=103526, 97665 TEST=Install version N, launch it with --check-for-update-interval=5, then install verison M>N with --critical-update-version=M. After a few seconds, Chrome should do something fantastic. Note that the alternate_version_generator can be used to create a newer versioned mini_installer from an existing one (just build it and run it). Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109620

Patch Set 1 #

Total comments: 9

Patch Set 2 : incorporated comments #

Total comments: 5

Patch Set 3 : last tweaks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+239 lines, -30 lines) Patch
M chrome/installer/setup/install_worker.cc View 1 2 6 chunks +37 lines, -19 lines 0 comments Download
M chrome/installer/setup/setup_main.cc View 1 chunk +8 lines, -7 lines 0 comments Download
M chrome/installer/util/google_update_constants.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/util/google_update_constants.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/util/install_util.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/util/installer_state.h View 1 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/installer/util/installer_state.cc View 2 chunks +19 lines, -0 lines 0 comments Download
M chrome/installer/util/installer_state_unittest.cc View 1 3 chunks +157 lines, -1 line 0 comments Download
M chrome/installer/util/util_constants.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/installer/util/util_constants.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
grt (UTC plus 2)
9 years, 1 month ago (2011-11-10 17:00:28 UTC) #1
grt (UTC plus 2)
Looping in Finnur as a reviewer.
9 years, 1 month ago (2011-11-10 19:31:52 UTC) #2
robertshield
On 2011/11/10 19:31:52, grt wrote: > Looping in Finnur as a reviewer. LGTM
9 years, 1 month ago (2011-11-10 20:02:53 UTC) #3
Finnur
I can't verify the correctness of the patch, since I don't know the installer in ...
9 years, 1 month ago (2011-11-11 10:31:01 UTC) #4
grt (UTC plus 2)
Thanks. PTAL. http://codereview.chromium.org/8517012/diff/1/chrome/installer/setup/install_worker.cc File chrome/installer/setup/install_worker.cc (right): http://codereview.chromium.org/8517012/diff/1/chrome/installer/setup/install_worker.cc#newcode560 chrome/installer/setup/install_worker.cc:560: // update relative to the version being ...
9 years, 1 month ago (2011-11-11 11:40:07 UTC) #5
Finnur
Still LGTM. Thanks for the explanation. Nits below... http://codereview.chromium.org/8517012/diff/1/chrome/installer/util/installer_state.h File chrome/installer/util/installer_state.h (right): http://codereview.chromium.org/8517012/diff/1/chrome/installer/util/installer_state.h#newcode150 chrome/installer/util/installer_state.h:150: // ...
9 years, 1 month ago (2011-11-11 12:12:47 UTC) #6
grt (UTC plus 2)
Thanks. Sending to the CQ now. http://codereview.chromium.org/8517012/diff/9001/chrome/installer/setup/install_worker.cc File chrome/installer/setup/install_worker.cc (right): http://codereview.chromium.org/8517012/diff/9001/chrome/installer/setup/install_worker.cc#newcode559 chrome/installer/setup/install_worker.cc:559: // critical_version will ...
9 years, 1 month ago (2011-11-11 12:17:48 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/grt@chromium.org/8517012/10003
9 years, 1 month ago (2011-11-11 12:18:00 UTC) #8
Finnur
http://codereview.chromium.org/8517012/diff/9001/chrome/installer/setup/install_worker.cc File chrome/installer/setup/install_worker.cc (right): http://codereview.chromium.org/8517012/diff/9001/chrome/installer/setup/install_worker.cc#newcode560 chrome/installer/setup/install_worker.cc:560: // critical update relative to the version being updated. ...
9 years, 1 month ago (2011-11-11 12:25:38 UTC) #9
commit-bot: I haz the power
9 years, 1 month ago (2011-11-11 13:28:35 UTC) #10
Change committed as 109620

Powered by Google App Engine
This is Rietveld 408576698