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

Unified Diff: chrome/browser/metrics/variations/chrome_variations_service_client.cc

Issue 1297193002: Move VariationsRegistrySyncerWin to ChromeVariationsServiceClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build harder Created 5 years, 4 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/browser/metrics/variations/chrome_variations_service_client.cc
diff --git a/chrome/browser/metrics/variations/chrome_variations_service_client.cc b/chrome/browser/metrics/variations/chrome_variations_service_client.cc
index 68cad5f7d6e8b4b094ab182f55f539bba9c44c84..282a28ac9bf680c5cd5dd3b63e8116615523deeb 100644
--- a/chrome/browser/metrics/variations/chrome_variations_service_client.cc
+++ b/chrome/browser/metrics/variations/chrome_variations_service_client.cc
@@ -13,3 +13,15 @@ ChromeVariationsServiceClient::~ChromeVariationsServiceClient() {}
std::string ChromeVariationsServiceClient::GetApplicationLocale() {
return g_browser_process->GetApplicationLocale();
}
+
+void ChromeVariationsServiceClient::OnInitialStartup() {
+#if defined(OS_WIN)
+ StartGoogleUpdateRegistrySync();
+#endif
+}
+
+#if defined(OS_WIN)
+void ChromeVariationsServiceClient::StartGoogleUpdateRegistrySync() {
+ registry_syncer_.RequestRegistrySync();
+}
+#endif

Powered by Google App Engine
This is Rietveld 408576698