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

Side by Side Diff: chrome/browser/metrics/variations/chrome_variations_service_client.h

Issue 1310253004: Have VariationsService get version for simulation callback from client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@variations_service_browser_thread
Patch Set: Rebase 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
« no previous file with comments | « no previous file | chrome/browser/metrics/variations/chrome_variations_service_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) 11 #if defined(OS_WIN)
12 #include "chrome/browser/metrics/variations/variations_registry_syncer_win.h" 12 #include "chrome/browser/metrics/variations/variations_registry_syncer_win.h"
13 #endif 13 #endif
14 14
15 // ChromeVariationsServiceClient provides an implementation of 15 // ChromeVariationsServiceClient provides an implementation of
16 // VariationsServiceClient that depends on chrome/. 16 // VariationsServiceClient that depends on chrome/.
17 class ChromeVariationsServiceClient 17 class ChromeVariationsServiceClient
18 : public chrome_variations::VariationsServiceClient { 18 : public chrome_variations::VariationsServiceClient {
19 public: 19 public:
20 ChromeVariationsServiceClient(); 20 ChromeVariationsServiceClient();
21 ~ChromeVariationsServiceClient() override; 21 ~ChromeVariationsServiceClient() override;
22 22
23 // chrome_variations::VariationsServiceClient: 23 // chrome_variations::VariationsServiceClient:
24 std::string GetApplicationLocale() override; 24 std::string GetApplicationLocale() override;
25 base::SequencedWorkerPool* GetBlockingPool() override; 25 base::SequencedWorkerPool* GetBlockingPool() override;
26 base::Callback<base::Version(void)> GetVersionForSimulationCallback()
27 override;
26 net::URLRequestContextGetter* GetURLRequestContext() override; 28 net::URLRequestContextGetter* GetURLRequestContext() override;
27 network_time::NetworkTimeTracker* GetNetworkTimeTracker() override; 29 network_time::NetworkTimeTracker* GetNetworkTimeTracker() override;
28 void OnInitialStartup() override; 30 void OnInitialStartup() override;
29 31
30 private: 32 private:
31 #if defined(OS_WIN) 33 #if defined(OS_WIN)
32 // Starts syncing Google Update Variation IDs with the registry. 34 // Starts syncing Google Update Variation IDs with the registry.
33 void StartGoogleUpdateRegistrySync(); 35 void StartGoogleUpdateRegistrySync();
34 36
35 // Helper that handles synchronizing Variations with the Registry. 37 // Helper that handles synchronizing Variations with the Registry.
36 chrome_variations::VariationsRegistrySyncer registry_syncer_; 38 chrome_variations::VariationsRegistrySyncer registry_syncer_;
37 #endif 39 #endif
38 40
39 DISALLOW_COPY_AND_ASSIGN(ChromeVariationsServiceClient); 41 DISALLOW_COPY_AND_ASSIGN(ChromeVariationsServiceClient);
40 }; 42 };
41 43
42 #endif // CHROME_BROWSER_METRICS_VARIATIONS_CHROME_VARIATIONS_SERVICE_CLIENT_H_ 44 #endif // CHROME_BROWSER_METRICS_VARIATIONS_CHROME_VARIATIONS_SERVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/metrics/variations/chrome_variations_service_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698