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

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

Issue 372473004: Retrieve client_id from GoogleUpdateSettings when its missing from Local State. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 6 years, 5 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
Index: chrome/installer/util/google_update_settings.h
diff --git a/chrome/installer/util/google_update_settings.h b/chrome/installer/util/google_update_settings.h
index f1b27debe52c580574ac4653301dcc0d9d0f9868..397a4dd826bb59d7f0973f600f6368c88cc82b6a 100644
--- a/chrome/installer/util/google_update_settings.h
+++ b/chrome/installer/util/google_update_settings.h
@@ -86,12 +86,16 @@ class GoogleUpdateSettings {
bool consented);
#endif
- // Returns the metrics client-id backed up in the registry. If none found,
- // returns empty string.
- static bool RetrieveMetricsID(std::string* metrics_id);
+ // Returns the metrics info backed up in the registry. Only non-null
+ // parameters will be retrieved. Returns false on retrieval failure for
+ // |metrics_id| (|installation_date| is not considered critical and is simply
+ // set to 0 on retrieval failure).
+ static bool RetrieveMetricsInfo(std::string* metrics_id,
+ int64* installation_date);
// Saves a backup of the metrics client-id in the registry.
- static bool SaveMetricsID(const std::string& metrics_id);
+ static bool SaveMetricsInfo(const std::string& metrics_id,
+ const int64 installation_date);
Ilya Sherman 2014/07/08 01:10:22 nit: No need for the const in front of an int para
gab 2014/07/09 19:16:59 Indeed, not sure how this ended up there, it's not
// Sets the machine-wide EULA consented flag required on OEM installs.
// Returns false if the setting could not be recorded.

Powered by Google App Engine
This is Rietveld 408576698