[email protected] | 8e7b2cf4 | 2012-04-18 14:26:58 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
license.bot | bf09a50 | 2008-08-24 00:55:55 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 4 | |
[email protected] | 572f40c9b | 2012-07-06 20:35:33 | [diff] [blame] | 5 | #ifndef CHROME_BROWSER_PREFS_BROWSER_PREFS_H_ |
6 | #define CHROME_BROWSER_PREFS_BROWSER_PREFS_H_ | ||||
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 7 | |
Lei Zhang | b76b80e3 | 2020-04-08 16:58:16 | [diff] [blame] | 8 | #include <string> |
tibell | 2961ff4 | 2017-04-06 05:31:16 | [diff] [blame] | 9 | |
avi | b896c71 | 2015-12-26 02:10:43 | [diff] [blame] | 10 | #include "build/build_config.h" |
Yuta Hijikata | 31a359c | 2020-11-27 07:50:26 | [diff] [blame] | 11 | #include "build/chromeos_buildflags.h" |
avi | b896c71 | 2015-12-26 02:10:43 | [diff] [blame] | 12 | |
[email protected] | b1de2c7 | 2013-02-06 02:45:47 | [diff] [blame] | 13 | class PrefRegistrySimple; |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 14 | class PrefService; |
[email protected] | 665fa01 | 2012-05-09 00:24:38 | [diff] [blame] | 15 | class Profile; |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 16 | |
[email protected] | 443e931 | 2013-05-06 06:17:34 | [diff] [blame] | 17 | namespace user_prefs { |
18 | class PrefRegistrySyncable; | ||||
19 | } | ||||
20 | |||||
[email protected] | 4082306d9 | 2013-02-21 14:51:01 | [diff] [blame] | 21 | // Register all prefs that will be used via the local state PrefService. |
22 | void RegisterLocalState(PrefRegistrySimple* registry); | ||||
23 | |||||
[email protected] | 8eefe84 | 2014-01-17 06:42:40 | [diff] [blame] | 24 | void RegisterScreenshotPrefs(PrefRegistrySimple* registry); |
25 | |||||
[email protected] | 37ca3fe0 | 2013-07-05 15:32:44 | [diff] [blame] | 26 | // Register all prefs that will be used via a PrefService attached to a user |
Xi Han | 25a7f03 | 2019-04-18 21:44:21 | [diff] [blame] | 27 | // Profile using the locale of |g_browser_process|. |
[email protected] | 37ca3fe0 | 2013-07-05 15:32:44 | [diff] [blame] | 28 | void RegisterUserProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
29 | |||||
Xi Han | 25a7f03 | 2019-04-18 21:44:21 | [diff] [blame] | 30 | // Register all prefs that will be used via a PrefService attached to a user |
31 | // Profile with the given |locale|. | ||||
32 | void RegisterUserProfilePrefs(user_prefs::PrefRegistrySyncable* registry, | ||||
33 | const std::string& locale); | ||||
34 | |||||
Yuta Hijikata | 31a359c | 2020-11-27 07:50:26 | [diff] [blame] | 35 | #if BUILDFLAG(IS_CHROMEOS_ASH) |
Xiyuan Xia | 5a8c417 | 2019-05-13 16:23:48 | [diff] [blame] | 36 | // Register all prefs that will be used via a PrefService attached to the |
37 | // sign-in profile using the locale of |g_browser_process|. | ||||
38 | void RegisterSigninProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | ||||
[email protected] | 37ca3fe0 | 2013-07-05 15:32:44 | [diff] [blame] | 39 | #endif |
[email protected] | 572f40c9b | 2012-07-06 20:35:33 | [diff] [blame] | 40 | |
rkaplow | f216caf | 2015-03-02 22:37:45 | [diff] [blame] | 41 | // Migrate/cleanup deprecated prefs in |local_state|. Over time, long deprecated |
42 | // prefs should be removed as new ones are added, but this call should never go | ||||
43 | // away (even if it becomes an empty call for some time) as it should remain | ||||
Lei Zhang | b76b80e3 | 2020-04-08 16:58:16 | [diff] [blame] | 44 | // *the* place to drop deprecated browser-level (Local State) prefs at. |
45 | void MigrateObsoleteLocalStatePrefs(PrefService* local_state); | ||||
[email protected] | 8e7b2cf4 | 2012-04-18 14:26:58 | [diff] [blame] | 46 | |
rkaplow | f216caf | 2015-03-02 22:37:45 | [diff] [blame] | 47 | // Migrate/cleanup deprecated prefs in |profile|'s pref store. Over time, long |
48 | // deprecated prefs should be removed as new ones are added, but this call | ||||
49 | // should never go away (even if it becomes an empty call for some time) as it | ||||
50 | // should remain *the* place to drop deprecated profile prefs at. | ||||
51 | void MigrateObsoleteProfilePrefs(Profile* profile); | ||||
[email protected] | 102253f | 2012-12-14 17:00:58 | [diff] [blame] | 52 | |
[email protected] | 572f40c9b | 2012-07-06 20:35:33 | [diff] [blame] | 53 | #endif // CHROME_BROWSER_PREFS_BROWSER_PREFS_H_ |