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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_METRICS_VARIATIONS_CHROME_VARIATIONS_SERVICE_CLIENT_H_ 5 #ifndef CHROME_BROWSER_METRICS_VARIATIONS_CHROME_VARIATIONS_SERVICE_CLIENT_H_
6 #define CHROME_BROWSER_METRICS_VARIATIONS_CHROME_VARIATIONS_SERVICE_CLIENT_H_ 6 #define CHROME_BROWSER_METRICS_VARIATIONS_CHROME_VARIATIONS_SERVICE_CLIENT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "components/variations/variations_service_client.h" 9 #include "components/variations/variations_service_client.h"
10 10
11 #if defined(OS_WIN)
12 #include "chrome/browser/metrics/variations/variations_registry_syncer_win.h"
13 #endif
14
11 // ChromeVariationsServiceClient provides an implementation of 15 // ChromeVariationsServiceClient provides an implementation of
12 // VariationsServiceClient that depends on chrome/. 16 // VariationsServiceClient that depends on chrome/.
13 class ChromeVariationsServiceClient 17 class ChromeVariationsServiceClient
14 : public chrome_variations::VariationsServiceClient { 18 : public chrome_variations::VariationsServiceClient {
15 public: 19 public:
16 ChromeVariationsServiceClient(); 20 ChromeVariationsServiceClient();
17 ~ChromeVariationsServiceClient() override; 21 ~ChromeVariationsServiceClient() override;
18 22
19 // chrome_variations::VariationsServiceClient: 23 // chrome_variations::VariationsServiceClient:
20 std::string GetApplicationLocale() override; 24 std::string GetApplicationLocale() override;
21 net::URLRequestContextGetter* GetURLRequestContext() override; 25 net::URLRequestContextGetter* GetURLRequestContext() override;
22 network_time::NetworkTimeTracker* GetNetworkTimeTracker() override; 26 network_time::NetworkTimeTracker* GetNetworkTimeTracker() override;
27 void OnInitialStartup() override;
23 28
24 private: 29 private:
30 #if defined(OS_WIN)
31 // Starts syncing Google Update Variation IDs with the registry.
32 void StartGoogleUpdateRegistrySync();
33
34 // Helper that handles synchronizing Variations with the Registry.
35 chrome_variations::VariationsRegistrySyncer registry_syncer_;
36 #endif
37
25 DISALLOW_COPY_AND_ASSIGN(ChromeVariationsServiceClient); 38 DISALLOW_COPY_AND_ASSIGN(ChromeVariationsServiceClient);
26 }; 39 };
27 40
28 #endif // CHROME_BROWSER_METRICS_VARIATIONS_CHROME_VARIATIONS_SERVICE_CLIENT_H_ 41 #endif // CHROME_BROWSER_METRICS_VARIATIONS_CHROME_VARIATIONS_SERVICE_CLIENT_H_
OLDNEW
« 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