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

Side by Side Diff: chrome/browser/prefs/chrome_pref_service_factory.h

Issue 147053005: Coarser levels for the SettingsEnforcement field trial. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: constantify trial/group names Created 6 years, 10 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 | Annotate | Revision Log
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_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ 5 #ifndef CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_
6 #define CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ 6 #define CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 10
(...skipping 14 matching lines...) Expand all
25 class ManagedUserSettingsService; 25 class ManagedUserSettingsService;
26 class PrefHashStore; 26 class PrefHashStore;
27 class PrefRegistry; 27 class PrefRegistry;
28 class PrefRegistrySimple; 28 class PrefRegistrySimple;
29 class PrefService; 29 class PrefService;
30 class PrefServiceSyncable; 30 class PrefServiceSyncable;
31 class PrefStore; 31 class PrefStore;
32 32
33 namespace chrome_prefs { 33 namespace chrome_prefs {
34 34
35 namespace internals {
36
37 extern const char kSettingsEnforcementTrialName[];
38 extern const char kSettingsEnforcementGroupNoEnforcement[];
39 extern const char kSettingsEnforcementGroupEnforceOnload[];
40 extern const char kSettingsEnforcementGroupEnforceAlways[];
41
42 } // namespace internals
43
35 // Factory methods that create and initialize a new instance of a 44 // Factory methods that create and initialize a new instance of a
36 // PrefService for Chrome with the applicable PrefStores. The 45 // PrefService for Chrome with the applicable PrefStores. The
37 // |pref_filename| points to the user preference file. This is the 46 // |pref_filename| points to the user preference file. This is the
38 // usual way to create a new PrefService. 47 // usual way to create a new PrefService.
39 // |extension_pref_store| is used as the source for extension-controlled 48 // |extension_pref_store| is used as the source for extension-controlled
40 // preferences and may be NULL. 49 // preferences and may be NULL.
41 // |policy_service| is used as the source for mandatory or recommended 50 // |policy_service| is used as the source for mandatory or recommended
42 // policies. 51 // policies.
43 // |pref_registry| keeps the list of registered prefs and their default values. 52 // |pref_registry| keeps the list of registered prefs and their default values.
44 // If |async| is true, asynchronous version is used. 53 // If |async| is true, asynchronous version is used.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 bool InitializePrefsFromMasterPrefs( 90 bool InitializePrefsFromMasterPrefs(
82 const base::FilePath& profile_path, 91 const base::FilePath& profile_path,
83 const base::DictionaryValue& master_prefs); 92 const base::DictionaryValue& master_prefs);
84 93
85 // Register local state prefs used by chrome preference system. 94 // Register local state prefs used by chrome preference system.
86 void RegisterPrefs(PrefRegistrySimple* registry); 95 void RegisterPrefs(PrefRegistrySimple* registry);
87 96
88 } // namespace chrome_prefs 97 } // namespace chrome_prefs
89 98
90 #endif // CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ 99 #endif // CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_
OLDNEW
« no previous file with comments | « chrome/browser/first_run/first_run_browsertest.cc ('k') | chrome/browser/prefs/chrome_pref_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698