diff options
author | grt@chromium.org <grt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-19 16:20:18 +0000 |
---|---|---|
committer | grt@chromium.org <grt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-19 16:20:18 +0000 |
commit | b08bd73ea5e7de0a09dd4676271683b564d01bde (patch) | |
tree | 0b41c37c805bed4bcb44bc404512e6b8a8e3decc /chrome/installer/util/install_util.h | |
parent | 6a7aa33a9cf09eb8b034c420a225a0b1a96e44f0 (diff) | |
download | chromium_src-b08bd73ea5e7de0a09dd4676271683b564d01bde.zip chromium_src-b08bd73ea5e7de0a09dd4676271683b564d01bde.tar.gz chromium_src-b08bd73ea5e7de0a09dd4676271683b564d01bde.tar.bz2 |
Write installer results in all relevant registry keys so that we're sure that Google Update will pick them up regardless of which one it happens to be monitoring.
BUG=none
TEST=Google Update continues to properly report install errors to its servers.
Review URL: http://codereview.chromium.org/7036017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85921 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/util/install_util.h')
-rw-r--r-- | chrome/installer/util/install_util.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/chrome/installer/util/install_util.h b/chrome/installer/util/install_util.h index 9fa9576..db5e41b 100644 --- a/chrome/installer/util/install_util.h +++ b/chrome/installer/util/install_util.h @@ -48,15 +48,17 @@ class InstallUtil { // This function checks if the current OS is supported for Chromium. static bool IsOSSupported(); - // This function sets installer error information in registry so that Google - // Update can read it and display to the user. |state_key| should be - // obtained via the state_key method of an InstallerState instance created - // before the machine state is modified by the installer. - static void WriteInstallerResult(bool system_install, - const std::wstring& state_key, - installer::InstallStatus status, - int string_resource_id, - const std::wstring* const launch_cmd); + // Adds work items to |install_list|, which should be a + // NoRollbackWorkItemList, to set installer error information in the registry + // for consumption by Google Update. |state_key| must be the full path to an + // app's ClientState key. See InstallerState::WriteInstallerResult for more + // details. + static void AddInstallerResultItems(bool system_install, + const std::wstring& state_key, + installer::InstallStatus status, + int string_resource_id, + const std::wstring* const launch_cmd, + WorkItemList* install_list); // Update the installer stage reported by Google Update. |state_key_path| // should be obtained via the state_key method of an InstallerState instance |