diff options
author | grt@chromium.org <grt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-11 13:28:34 +0000 |
---|---|---|
committer | grt@chromium.org <grt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-11 13:28:34 +0000 |
commit | 2589396510cb9ec9a4e3520dcef3524e65fecd58 (patch) | |
tree | 54824cb5227354c24f04c7f34b5c104c78a14943 /chrome/installer/util/util_constants.h | |
parent | c7959c98c6625ad4e0758bd8e95e35be3442219a (diff) | |
download | chromium_src-2589396510cb9ec9a4e3520dcef3524e65fecd58.zip chromium_src-2589396510cb9ec9a4e3520dcef3524e65fecd58.tar.gz chromium_src-2589396510cb9ec9a4e3520dcef3524e65fecd58.tar.bz2 |
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).
Review URL: http://codereview.chromium.org/8517012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109620 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/util/util_constants.h')
-rw-r--r-- | chrome/installer/util/util_constants.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/installer/util/util_constants.h b/chrome/installer/util/util_constants.h index 95d79df..5911701 100644 --- a/chrome/installer/util/util_constants.h +++ b/chrome/installer/util/util_constants.h @@ -128,6 +128,7 @@ extern const char kChromeFrameReadyModeTempOptOut[]; extern const char kChromeFrameReadyModeEndTempOptOut[]; extern const char kChromeSxS[]; extern const char kCreateAllShortcuts[]; +extern const char kCriticalUpdateVersion[]; extern const char kDeleteProfile[]; extern const char kDisableLogging[]; extern const char kDoNotCreateShortcuts[]; |