Chromium Code Reviews| 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_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 Loading... | |
| 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 disable delays in | |
| 85 // chrome_prefs::Schedule*() methods and ignore presence of a domain when | |
| 86 // determining the active SettingsEnforcement group. For testing only. | |
| 87 void DisableDelaysAndDomainCheckForTesting(); | |
| 88 | |
| 89 // Schedules an update check for all PrefHashStores, stores whose version | |
| 90 // doesn't match the latest version will then be updated. Clears all pref hash | |
| 91 // state on platforms that don't yet support a pref hash store. | |
| 92 void SchedulePrefHashStoresUpdateCheck( | |
|
gab
2014/10/02 21:28:32
Was left behind in the header in a previous cleanu
| |
| 93 const base::FilePath& initial_profile_path); | |
| 94 | |
| 95 // Initializes the preferences for the profile at |profile_path| with the | 84 // Initializes the preferences for the profile at |profile_path| with the |
| 96 // preference values in |master_prefs|. Returns true on success. | 85 // preference values in |master_prefs|. Returns true on success. |
| 97 bool InitializePrefsFromMasterPrefs( | 86 bool InitializePrefsFromMasterPrefs( |
| 98 const base::FilePath& profile_path, | 87 const base::FilePath& profile_path, |
| 99 const base::DictionaryValue& master_prefs); | 88 const base::DictionaryValue& master_prefs); |
| 100 | 89 |
| 101 // Retrieves the time of the last preference reset event, if any, for the | 90 // Retrieves the time of the last preference reset event, if any, for the |
| 102 // provided profile. If no reset has occurred, returns a null |Time|. | 91 // provided profile. If no reset has occurred, returns a null |Time|. |
| 103 base::Time GetResetTime(Profile* profile); | 92 base::Time GetResetTime(Profile* profile); |
| 104 | 93 |
| 105 // Clears the time of the last preference reset event, if any, for the provided | 94 // Clears the time of the last preference reset event, if any, for the provided |
| 106 // profile. | 95 // profile. |
| 107 void ClearResetTime(Profile* profile); | 96 void ClearResetTime(Profile* profile); |
| 108 | 97 |
| 109 // Register local state prefs used by chrome preference system. | 98 // Register local state prefs used by chrome preference system. |
| 110 void RegisterPrefs(PrefRegistrySimple* registry); | 99 void RegisterPrefs(PrefRegistrySimple* registry); |
| 111 | 100 |
| 112 // Register user prefs used by chrome preference system. | 101 // Register user prefs used by chrome preference system. |
| 113 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 102 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| 114 | 103 |
| 115 } // namespace chrome_prefs | 104 } // namespace chrome_prefs |
| 116 | 105 |
| 117 #endif // CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ | 106 #endif // CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ |
| OLD | NEW |