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

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

Issue 936483002: Bring back the domain gating check for settings protection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@908473002_ps2
Patch Set: update histogram description Created 5 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
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 policy::PolicyService* policy_service, 74 policy::PolicyService* policy_service,
75 SupervisedUserSettingsService* supervised_user_settings, 75 SupervisedUserSettingsService* supervised_user_settings,
76 const scoped_refptr<PrefStore>& extension_prefs, 76 const scoped_refptr<PrefStore>& extension_prefs,
77 const scoped_refptr<user_prefs::PrefRegistrySyncable>& pref_registry, 77 const scoped_refptr<user_prefs::PrefRegistrySyncable>& pref_registry,
78 bool async); 78 bool async);
79 79
80 // Schedules verification of the path resolution of the preferences file under 80 // Schedules verification of the path resolution of the preferences file under
81 // |profile_path|. 81 // |profile_path|.
82 void SchedulePrefsFilePathVerification(const base::FilePath& profile_path); 82 void SchedulePrefsFilePathVerification(const base::FilePath& profile_path);
83 83
84 // Call before startup tasks kick in to ignore the presence of a domain when
85 // determining the active SettingsEnforcement group. For testing only.
86 void DisableDomainCheckForTesting();
87
84 // Initializes the preferences for the profile at |profile_path| with the 88 // Initializes the preferences for the profile at |profile_path| with the
85 // preference values in |master_prefs|. Returns true on success. 89 // preference values in |master_prefs|. Returns true on success.
86 bool InitializePrefsFromMasterPrefs( 90 bool InitializePrefsFromMasterPrefs(
87 const base::FilePath& profile_path, 91 const base::FilePath& profile_path,
88 const base::DictionaryValue& master_prefs); 92 const base::DictionaryValue& master_prefs);
89 93
90 // Retrieves the time of the last preference reset event, if any, for the 94 // Retrieves the time of the last preference reset event, if any, for the
91 // provided profile. If no reset has occurred, returns a null |Time|. 95 // provided profile. If no reset has occurred, returns a null |Time|.
92 base::Time GetResetTime(Profile* profile); 96 base::Time GetResetTime(Profile* profile);
93 97
94 // Clears the time of the last preference reset event, if any, for the provided 98 // Clears the time of the last preference reset event, if any, for the provided
95 // profile. 99 // profile.
96 void ClearResetTime(Profile* profile); 100 void ClearResetTime(Profile* profile);
97 101
98 // Register local state prefs used by chrome preference system. 102 // Register local state prefs used by chrome preference system.
99 void RegisterPrefs(PrefRegistrySimple* registry); 103 void RegisterPrefs(PrefRegistrySimple* registry);
100 104
101 // Register user prefs used by chrome preference system. 105 // Register user prefs used by chrome preference system.
102 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 106 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
103 107
104 } // namespace chrome_prefs 108 } // namespace chrome_prefs
105 109
106 #endif // CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ 110 #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