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

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

Issue 365133005: Refactor SetClientID such that metrics rather than crash backs up the client id in Google Update set (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup 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.cc
diff --git a/chrome/installer/util/google_update_settings.cc b/chrome/installer/util/google_update_settings.cc
index 94b7994f8bef4850373ee8d4da8e098d9779ce77..8d833819b6293c952ffc0dd94df454d405edbc5e 100644
--- a/chrome/installer/util/google_update_settings.cc
+++ b/chrome/installer/util/google_update_settings.cc
@@ -298,14 +298,14 @@ bool GoogleUpdateSettings::SetCollectStatsConsentAtLevel(bool system_install,
return (result == ERROR_SUCCESS);
}
-bool GoogleUpdateSettings::GetMetricsId(std::string* metrics_id) {
+bool GoogleUpdateSettings::RetrieveMetricsID(std::string* metrics_id) {
std::wstring metrics_id_w;
bool rv = ReadGoogleUpdateStrKey(google_update::kRegMetricsId, &metrics_id_w);
*metrics_id = base::WideToUTF8(metrics_id_w);
return rv;
}
-bool GoogleUpdateSettings::SetMetricsId(const std::string& metrics_id) {
+bool GoogleUpdateSettings::SaveMetricsID(const std::string& metrics_id) {
std::wstring metrics_id_w = base::UTF8ToWide(metrics_id);
return WriteGoogleUpdateStrKey(google_update::kRegMetricsId, metrics_id_w);
}

Powered by Google App Engine
This is Rietveld 408576698