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

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

Issue 1312423003: Turn VariationsService::GetVariationsServerURL into instance method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 3 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 (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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698