OLD | NEW |
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/service/variations_service_client.h" | 9 #include "components/variations/service/variations_service_client.h" |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 // variations::VariationsServiceClient: | 23 // 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() | 26 base::Callback<base::Version(void)> GetVersionForSimulationCallback() |
27 override; | 27 override; |
28 net::URLRequestContextGetter* GetURLRequestContext() override; | 28 net::URLRequestContextGetter* GetURLRequestContext() override; |
29 network_time::NetworkTimeTracker* GetNetworkTimeTracker() override; | 29 network_time::NetworkTimeTracker* GetNetworkTimeTracker() override; |
30 version_info::Channel GetChannel() override; | 30 version_info::Channel GetChannel() override; |
31 bool OverridesRestrictParameter(std::string* parameter) override; | 31 bool OverridesRestrictParameter(std::string* parameter) override; |
32 void OverrideUIString(uint32_t hash, const base::string16& string) override; | |
33 void OnInitialStartup() override; | 32 void OnInitialStartup() override; |
34 | 33 |
35 private: | 34 private: |
36 #if defined(OS_WIN) | 35 #if defined(OS_WIN) |
37 // Starts syncing Google Update Variation IDs with the registry. | 36 // Starts syncing Google Update Variation IDs with the registry. |
38 void StartGoogleUpdateRegistrySync(); | 37 void StartGoogleUpdateRegistrySync(); |
39 | 38 |
40 // Helper that handles synchronizing Variations with the Registry. | 39 // Helper that handles synchronizing Variations with the Registry. |
41 chrome_variations::VariationsRegistrySyncer registry_syncer_; | 40 chrome_variations::VariationsRegistrySyncer registry_syncer_; |
42 #endif | 41 #endif |
43 | 42 |
44 DISALLOW_COPY_AND_ASSIGN(ChromeVariationsServiceClient); | 43 DISALLOW_COPY_AND_ASSIGN(ChromeVariationsServiceClient); |
45 }; | 44 }; |
46 | 45 |
47 #endif // CHROME_BROWSER_METRICS_VARIATIONS_CHROME_VARIATIONS_SERVICE_CLIENT_H_ | 46 #endif // CHROME_BROWSER_METRICS_VARIATIONS_CHROME_VARIATIONS_SERVICE_CLIENT_H_ |
OLD | NEW |