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

Unified Diff: chrome/installer/util/installer_state.h

Issue 7036017: Write installer results in all relevant registry keys so that we're sure that Google Update will ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/installer/util/install_util_unittest.cc ('k') | chrome/installer/util/installer_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/installer_state.h
===================================================================
--- chrome/installer/util/installer_state.h (revision 85625)
+++ chrome/installer/util/installer_state.h (working copy)
@@ -168,6 +168,17 @@
// "ap" values for all products being operated on.
void UpdateChannels() const;
+ // Sets installer result information in the registry for consumption by Google
+ // Update. The InstallerResult value is set to 0 (SUCCESS) or 1
+ // (FAILED_CUSTOM_ERROR) depending on whether |status| maps to success or not.
+ // |status| itself is written to the InstallerError value.
+ // |string_resource_id|, if non-zero, identifies a localized string written to
+ // the InstallerResultUIString value. |launch_cmd|, if non-NULL and
+ // non-empty, is written to the InstallerSuccessLaunchCmdLine value.
+ void WriteInstallerResult(InstallStatus status,
+ int string_resource_id,
+ const std::wstring* launch_cmd) const;
+
protected:
FilePath GetDefaultProductInstallPath(BrowserDistribution* dist) const;
bool CanAddProduct(const Product& product, const FilePath* product_dir) const;
« no previous file with comments | « chrome/installer/util/install_util_unittest.cc ('k') | chrome/installer/util/installer_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698