summaryrefslogtreecommitdiffstats
path: root/chrome/installer/util/google_update_settings.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/installer/util/google_update_settings.h')
-rw-r--r--chrome/installer/util/google_update_settings.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/chrome/installer/util/google_update_settings.h b/chrome/installer/util/google_update_settings.h
index 70fbaf8..dd7145e 100644
--- a/chrome/installer/util/google_update_settings.h
+++ b/chrome/installer/util/google_update_settings.h
@@ -83,6 +83,27 @@ class GoogleUpdateSettings {
// on success, channel contains one of "", "unknown", "dev" or "beta".
static bool GetChromeChannel(bool system_install, std::wstring* channel);
+ static void UpdateDiffInstallStatus(bool system_install,
+ bool incremental_install,
+ int install_return_code,
+ const std::wstring& product_guid);
+
+ // This method generates the new value for Google Update "ap" key for Chrome
+ // based on whether we are doing incremental install (or not) and whether
+ // the install succeeded.
+ // - If install worked, remove the magic string (if present).
+ // - If incremental installer failed, append a magic string (if
+ // not present already).
+ // - If full installer failed, still remove this magic
+ // string (if it is present already).
+ //
+ // diff_install: tells whether this is incremental install or not.
+ // install_return_code: if 0, means installation was successful.
+ // value: current value of Google Update "ap" key.
+ static std::wstring GetNewGoogleUpdateApKey(bool diff_install,
+ int install_return_code,
+ const std::wstring& value);
+
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(GoogleUpdateSettings);
};