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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_PREFS_BROWSER_PREFS_H_
6 #define CHROME_BROWSER_PREFS_BROWSER_PREFS_H_
8 class PrefRegistrySimple
;
12 namespace user_prefs
{
13 class PrefRegistrySyncable
;
18 // Register all prefs that will be used via the local state PrefService.
19 void RegisterLocalState(PrefRegistrySimple
* registry
);
21 void RegisterScreenshotPrefs(PrefRegistrySimple
* registry
);
23 // Register all prefs that will be used via a PrefService attached to a user
25 void RegisterUserProfilePrefs(user_prefs::PrefRegistrySyncable
* registry
);
27 #if defined(OS_CHROMEOS)
28 // Register all prefs that will be used via a PrefService attached to the login
30 void RegisterLoginProfilePrefs(user_prefs::PrefRegistrySyncable
* registry
);
33 // Migrate/cleanup deprecated prefs in |local_state|. Over time, long deprecated
34 // prefs should be removed as new ones are added, but this call should never go
35 // away (even if it becomes an empty call for some time) as it should remain
36 // *the* place to drop deprecated browser prefs at.
37 void MigrateObsoleteBrowserPrefs(Profile
* profile
, PrefService
* local_state
);
39 // Migrate/cleanup deprecated prefs in |profile|'s pref store. Over time, long
40 // deprecated prefs should be removed as new ones are added, but this call
41 // should never go away (even if it becomes an empty call for some time) as it
42 // should remain *the* place to drop deprecated profile prefs at.
43 void MigrateObsoleteProfilePrefs(Profile
* profile
);
47 #endif // CHROME_BROWSER_PREFS_BROWSER_PREFS_H_