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 <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 std::unique_ptr<PrefService> CreateLocalState( | 71 std::unique_ptr<PrefService> CreateLocalState( |
72 const base::FilePath& pref_filename, | 72 const base::FilePath& pref_filename, |
73 base::SequencedTaskRunner* pref_io_task_runner, | 73 base::SequencedTaskRunner* pref_io_task_runner, |
74 policy::PolicyService* policy_service, | 74 policy::PolicyService* policy_service, |
75 const scoped_refptr<PrefRegistry>& pref_registry, | 75 const scoped_refptr<PrefRegistry>& pref_registry, |
76 bool async); | 76 bool async); |
77 | 77 |
78 std::unique_ptr<sync_preferences::PrefServiceSyncable> CreateProfilePrefs( | 78 std::unique_ptr<sync_preferences::PrefServiceSyncable> CreateProfilePrefs( |
79 const base::FilePath& pref_filename, | 79 const base::FilePath& pref_filename, |
80 base::SequencedTaskRunner* pref_io_task_runner, | 80 base::SequencedTaskRunner* pref_io_task_runner, |
81 prefs::mojom::TrackedPreferenceValidationDelegate* validation_delegate, | 81 std::unique_ptr<prefs::mojom::TrackedPreferenceValidationDelegate>* |
| 82 validation_delegate, |
82 policy::PolicyService* policy_service, | 83 policy::PolicyService* policy_service, |
83 SupervisedUserSettingsService* supervised_user_settings, | 84 SupervisedUserSettingsService* supervised_user_settings, |
84 const scoped_refptr<PrefStore>& extension_prefs, | 85 const scoped_refptr<PrefStore>& extension_prefs, |
85 const scoped_refptr<user_prefs::PrefRegistrySyncable>& pref_registry, | 86 const scoped_refptr<user_prefs::PrefRegistrySyncable>& pref_registry, |
86 bool async); | 87 bool async); |
87 | 88 |
88 // Call before startup tasks kick in to ignore the presence of a domain when | 89 // Call before startup tasks kick in to ignore the presence of a domain when |
89 // determining the active SettingsEnforcement group. For testing only. | 90 // determining the active SettingsEnforcement group. For testing only. |
90 void DisableDomainCheckForTesting(); | 91 void DisableDomainCheckForTesting(); |
91 | 92 |
(...skipping 10 matching lines...) Expand all Loading... |
102 // Clears the time of the last preference reset event, if any, for the provided | 103 // Clears the time of the last preference reset event, if any, for the provided |
103 // profile. | 104 // profile. |
104 void ClearResetTime(Profile* profile); | 105 void ClearResetTime(Profile* profile); |
105 | 106 |
106 // Register user prefs used by chrome preference system. | 107 // Register user prefs used by chrome preference system. |
107 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 108 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
108 | 109 |
109 } // namespace chrome_prefs | 110 } // namespace chrome_prefs |
110 | 111 |
111 #endif // CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ | 112 #endif // CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ |
OLD | NEW |