Index: chrome/browser/metrics/chrome_metrics_service_client.cc |
diff --git a/chrome/browser/metrics/chrome_metrics_service_client.cc b/chrome/browser/metrics/chrome_metrics_service_client.cc |
index 6a2c51bbf97bdfb94b599535b29a1895a32a71bc..f10cc159d9b69fc06b362aad945ca0a33cf1ff8c 100644 |
--- a/chrome/browser/metrics/chrome_metrics_service_client.cc |
+++ b/chrome/browser/metrics/chrome_metrics_service_client.cc |
@@ -35,6 +35,7 @@ |
#include "chrome/common/crash_keys.h" |
#include "chrome/common/pref_names.h" |
#include "chrome/common/render_messages.h" |
+#include "chrome/installer/util/google_update_settings.h" |
#include "components/metrics/metrics_service.h" |
#include "components/metrics/net/net_metrics_log_uploader.h" |
#include "content/public/browser/browser_thread.h" |
@@ -161,8 +162,12 @@ void ChromeMetricsServiceClient::RegisterPrefs(PrefRegistrySimple* registry) { |
#endif // defined(ENABLE_PLUGINS) |
} |
-void ChromeMetricsServiceClient::SetClientID(const std::string& client_id) { |
- crash_keys::SetClientID(client_id); |
+void ChromeMetricsServiceClient::SetMetricsClientId( |
+ const std::string& client_id) { |
+ crash_keys::SetCrashClientIdFromGUID(client_id); |
+ |
+ // Store a backup of the client id in Google Update settings. |
+ GoogleUpdateSettings::StoreMetricsClientId(client_id); |
} |
bool ChromeMetricsServiceClient::IsOffTheRecordSessionActive() { |