| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 const base::DictionaryValue& master_prefs); | 93 const base::DictionaryValue& master_prefs); |
| 94 | 94 |
| 95 // Retrieves the time of the last preference reset event, if any, for the | 95 // Retrieves the time of the last preference reset event, if any, for the |
| 96 // provided profile. If no reset has occurred, returns a null |Time|. | 96 // provided profile. If no reset has occurred, returns a null |Time|. |
| 97 base::Time GetResetTime(Profile* profile); | 97 base::Time GetResetTime(Profile* profile); |
| 98 | 98 |
| 99 // Clears the time of the last preference reset event, if any, for the provided | 99 // Clears the time of the last preference reset event, if any, for the provided |
| 100 // profile. | 100 // profile. |
| 101 void ClearResetTime(Profile* profile); | 101 void ClearResetTime(Profile* profile); |
| 102 | 102 |
| 103 // Register local state prefs used by chrome preference system. | |
| 104 void RegisterPrefs(PrefRegistrySimple* registry); | |
| 105 | |
| 106 // Register user prefs used by chrome preference system. | 103 // Register user prefs used by chrome preference system. |
| 107 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 104 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| 108 | 105 |
| 109 } // namespace chrome_prefs | 106 } // namespace chrome_prefs |
| 110 | 107 |
| 111 #endif // CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ | 108 #endif // CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ |
| OLD | NEW |