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/google_update_constants.cc | |
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/google_update_constants.cc')
-rw-r--r-- | chrome/installer/util/google_update_constants.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/installer/util/google_update_constants.cc b/chrome/installer/util/google_update_constants.cc index bcc9e80..4e4126d 100644 --- a/chrome/installer/util/google_update_constants.cc +++ b/chrome/installer/util/google_update_constants.cc @@ -24,7 +24,7 @@ const wchar_t kRegCFOptOutCmdField[] = L"CFOptOutCmd"; const wchar_t kRegCFTempOptOutCmdField[] = L"CFTempOptOutCmd"; const wchar_t kRegClientField[] = L"client"; const wchar_t kRegCommandLineField[] = L"CommandLine"; -const wchar_t kRegCriticalUpdateField[] = L"CriticalUpdate"; +const wchar_t kRegCriticalVersionField[] = L"cpv"; const wchar_t kRegDidRunField[] = L"dr"; const wchar_t kRegEULAAceptedField[] = L"eulaaccepted"; const wchar_t kRegLangField[] = L"lang"; |