| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_VARIATIONS_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_METRICS_VARIATIONS_VARIATIONS_SERVICE_H_ |
| 6 #define CHROME_BROWSER_METRICS_VARIATIONS_VARIATIONS_SERVICE_H_ | 6 #define CHROME_BROWSER_METRICS_VARIATIONS_VARIATIONS_SERVICE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 // value coming from policy prefs. This should be called prior to any calls | 102 // value coming from policy prefs. This should be called prior to any calls |
| 103 // to |StartRepeatedVariationsSeedFetch|. | 103 // to |StartRepeatedVariationsSeedFetch|. |
| 104 void SetRestrictMode(const std::string& restrict_mode); | 104 void SetRestrictMode(const std::string& restrict_mode); |
| 105 | 105 |
| 106 // Exposed for testing. | 106 // Exposed for testing. |
| 107 void SetCreateTrialsFromSeedCalledForTesting(bool called); | 107 void SetCreateTrialsFromSeedCalledForTesting(bool called); |
| 108 | 108 |
| 109 // Returns the variations server URL, which can vary if a command-line flag is | 109 // Returns the variations server URL, which can vary if a command-line flag is |
| 110 // set and/or the variations restrict pref is set in |local_prefs|. Declared | 110 // set and/or the variations restrict pref is set in |local_prefs|. Declared |
| 111 // static for test purposes. | 111 // static for test purposes. |
| 112 static GURL GetVariationsServerURL(PrefService* local_prefs, | 112 GURL GetVariationsServerURL(PrefService* local_prefs, |
| 113 const std::string& restrict_mode_override); | 113 const std::string& restrict_mode_override); |
| 114 | 114 |
| 115 // Exposed for testing. | 115 // Exposed for testing. |
| 116 static std::string GetDefaultVariationsServerURLForTesting(); | 116 static std::string GetDefaultVariationsServerURLForTesting(); |
| 117 | 117 |
| 118 // Register Variations related prefs in Local State. | 118 // Register Variations related prefs in Local State. |
| 119 static void RegisterPrefs(PrefRegistrySimple* registry); | 119 static void RegisterPrefs(PrefRegistrySimple* registry); |
| 120 | 120 |
| 121 // Register Variations related prefs in the Profile prefs. | 121 // Register Variations related prefs in the Profile prefs. |
| 122 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 122 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| 123 | 123 |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 base::ThreadChecker thread_checker_; | 284 base::ThreadChecker thread_checker_; |
| 285 | 285 |
| 286 base::WeakPtrFactory<VariationsService> weak_ptr_factory_; | 286 base::WeakPtrFactory<VariationsService> weak_ptr_factory_; |
| 287 | 287 |
| 288 DISALLOW_COPY_AND_ASSIGN(VariationsService); | 288 DISALLOW_COPY_AND_ASSIGN(VariationsService); |
| 289 }; | 289 }; |
| 290 | 290 |
| 291 } // namespace chrome_variations | 291 } // namespace chrome_variations |
| 292 | 292 |
| 293 #endif // CHROME_BROWSER_METRICS_VARIATIONS_VARIATIONS_SERVICE_H_ | 293 #endif // CHROME_BROWSER_METRICS_VARIATIONS_VARIATIONS_SERVICE_H_ |
| OLD | NEW |