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

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

Issue 1297193002: Move VariationsRegistrySyncerWin to ChromeVariationsServiceClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Response to review 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.h
diff --git a/chrome/browser/metrics/variations/chrome_variations_service_client.h b/chrome/browser/metrics/variations/chrome_variations_service_client.h
index 5326fd1ef09ca1490b57e7bb697ff3289d5dc017..52e2caaa7ff217806b07c97572c4d2e85da21e14 100644
--- a/chrome/browser/metrics/variations/chrome_variations_service_client.h
+++ b/chrome/browser/metrics/variations/chrome_variations_service_client.h
@@ -8,6 +8,10 @@
#include "base/basictypes.h"
#include "components/variations/variations_service_client.h"
+#if defined(OS_WIN)
+#include "chrome/browser/metrics/variations/variations_registry_syncer_win.h"
+#endif
+
// ChromeVariationsServiceClient provides an implementation of
// VariationsServiceClient that depends on chrome/.
class ChromeVariationsServiceClient
@@ -20,8 +24,17 @@ class ChromeVariationsServiceClient
std::string GetApplicationLocale() override;
net::URLRequestContextGetter* GetURLRequestContext() override;
network_time::NetworkTimeTracker* GetNetworkTimeTracker() override;
+ void OnInitialStartup() override;
private:
+#if defined(OS_WIN)
+ // Starts syncing Google Update Variation IDs with the registry.
+ void StartGoogleUpdateRegistrySync();
+
+ // Helper that handles synchronizing Variations with the Registry.
+ chrome_variations::VariationsRegistrySyncer registry_syncer_;
+#endif
+
DISALLOW_COPY_AND_ASSIGN(ChromeVariationsServiceClient);
};
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/metrics/variations/chrome_variations_service_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698