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_UI_BROWSER_UI_PREFS_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_UI_PREFS_H_ |
6 #define CHROME_BROWSER_UI_BROWSER_UI_PREFS_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_UI_PREFS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 class PrefRegistrySimple; | 10 class PrefRegistrySimple; |
| 11 class PrefService; |
11 class Profile; | 12 class Profile; |
12 | 13 |
13 namespace user_prefs { | 14 namespace user_prefs { |
14 class PrefRegistrySyncable; | 15 class PrefRegistrySyncable; |
15 } | 16 } |
16 | 17 |
17 namespace chrome { | 18 namespace chrome { |
18 | 19 |
| 20 void MigrateBrowserUIUserPrefs(PrefService* prefs); |
19 void RegisterBrowserPrefs(PrefRegistrySimple* registry); | 21 void RegisterBrowserPrefs(PrefRegistrySimple* registry); |
20 void RegisterBrowserUserPrefs(user_prefs::PrefRegistrySyncable* registry); | 22 void RegisterBrowserUserPrefs(user_prefs::PrefRegistrySyncable* registry); |
21 | 23 |
22 // Create a preference dictionary for the provided application name, in the | |
23 // given user profile. This is done only once per application name / per | |
24 // session / per user profile. | |
25 void RegisterAppPrefs(const std::string& app_name, Profile* profile); | |
26 | |
27 } // namespace chrome | 24 } // namespace chrome |
28 | 25 |
29 #endif // CHROME_BROWSER_UI_BROWSER_UI_PREFS_H_ | 26 #endif // CHROME_BROWSER_UI_BROWSER_UI_PREFS_H_ |
OLD | NEW |