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

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

Issue 1309843005: Remove more //chrome dependencies from VariationsService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@variations_service_get_channel
Patch Set: Response to review 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
124 // Factory method for creating a VariationsService. Does not take ownership of 124 // Factory method for creating a VariationsService. Does not take ownership of
125 // |state_manager|. Caller should ensure that |state_manager| is valid for the 125 // |state_manager|. Caller should ensure that |state_manager| is valid for the
126 // lifetime of this class. 126 // lifetime of this class.
127 static scoped_ptr<VariationsService> Create( 127 static scoped_ptr<VariationsService> Create(
128 scoped_ptr<VariationsServiceClient> client, 128 scoped_ptr<VariationsServiceClient> client,
129 PrefService* local_state, 129 PrefService* local_state,
130 metrics::MetricsStateManager* state_manager); 130 metrics::MetricsStateManager* state_manager,
131 const char* disable_network_switch);
131 132
132 // Set the PrefService responsible for getting policy-related preferences, 133 // Set the PrefService responsible for getting policy-related preferences,
133 // such as the restrict parameter. 134 // such as the restrict parameter.
134 void set_policy_pref_service(PrefService* service) { 135 void set_policy_pref_service(PrefService* service) {
135 DCHECK(service); 136 DCHECK(service);
136 policy_pref_service_ = service; 137 policy_pref_service_ = service;
137 } 138 }
138 139
139 // Returns the invalid variations seed signature in base64 format, or an empty 140 // Returns the invalid variations seed signature in base64 format, or an empty
140 // string if the signature was valid, missing, or if signature verification is 141 // string if the signature was valid, missing, or if signature verification is
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 base::ThreadChecker thread_checker_; 284 base::ThreadChecker thread_checker_;
284 285
285 base::WeakPtrFactory<VariationsService> weak_ptr_factory_; 286 base::WeakPtrFactory<VariationsService> weak_ptr_factory_;
286 287
287 DISALLOW_COPY_AND_ASSIGN(VariationsService); 288 DISALLOW_COPY_AND_ASSIGN(VariationsService);
288 }; 289 };
289 290
290 } // namespace chrome_variations 291 } // namespace chrome_variations
291 292
292 #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