blob: 815c29974a5905918543c84aeedafb47b53af705 [file] [log] [blame]
[email protected]8e7b2cf42012-04-18 14:26:581// Copyright (c) 2012 The Chromium Authors. All rights reserved.
license.botbf09a502008-08-24 00:55:552// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
initial.commit09911bf2008-07-26 23:55:294
[email protected]572f40c9b2012-07-06 20:35:335#ifndef CHROME_BROWSER_PREFS_BROWSER_PREFS_H_
6#define CHROME_BROWSER_PREFS_BROWSER_PREFS_H_
initial.commit09911bf2008-07-26 23:55:297
Lei Zhangb76b80e32020-04-08 16:58:168#include <string>
tibell2961ff42017-04-06 05:31:169
avib896c712015-12-26 02:10:4310#include "build/build_config.h"
Yuta Hijikata31a359c2020-11-27 07:50:2611#include "build/chromeos_buildflags.h"
avib896c712015-12-26 02:10:4312
[email protected]b1de2c72013-02-06 02:45:4713class PrefRegistrySimple;
initial.commit09911bf2008-07-26 23:55:2914class PrefService;
[email protected]665fa012012-05-09 00:24:3815class Profile;
initial.commit09911bf2008-07-26 23:55:2916
[email protected]443e9312013-05-06 06:17:3417namespace user_prefs {
18class PrefRegistrySyncable;
19}
20
[email protected]4082306d92013-02-21 14:51:0121// Register all prefs that will be used via the local state PrefService.
22void RegisterLocalState(PrefRegistrySimple* registry);
23
[email protected]8eefe842014-01-17 06:42:4024void RegisterScreenshotPrefs(PrefRegistrySimple* registry);
25
[email protected]37ca3fe02013-07-05 15:32:4426// Register all prefs that will be used via a PrefService attached to a user
Xi Han25a7f032019-04-18 21:44:2127// Profile using the locale of |g_browser_process|.
[email protected]37ca3fe02013-07-05 15:32:4428void RegisterUserProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
29
Xi Han25a7f032019-04-18 21:44:2130// Register all prefs that will be used via a PrefService attached to a user
31// Profile with the given |locale|.
32void RegisterUserProfilePrefs(user_prefs::PrefRegistrySyncable* registry,
33 const std::string& locale);
34
Yuta Hijikata31a359c2020-11-27 07:50:2635#if BUILDFLAG(IS_CHROMEOS_ASH)
Xiyuan Xia5a8c4172019-05-13 16:23:4836// Register all prefs that will be used via a PrefService attached to the
37// sign-in profile using the locale of |g_browser_process|.
38void RegisterSigninProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
[email protected]37ca3fe02013-07-05 15:32:4439#endif
[email protected]572f40c9b2012-07-06 20:35:3340
rkaplowf216caf2015-03-02 22:37:4541// 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 Zhangb76b80e32020-04-08 16:58:1644// *the* place to drop deprecated browser-level (Local State) prefs at.
45void MigrateObsoleteLocalStatePrefs(PrefService* local_state);
[email protected]8e7b2cf42012-04-18 14:26:5846
rkaplowf216caf2015-03-02 22:37:4547// 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.
51void MigrateObsoleteProfilePrefs(Profile* profile);
[email protected]102253f2012-12-14 17:00:5852
[email protected]572f40c9b2012-07-06 20:35:3353#endif // CHROME_BROWSER_PREFS_BROWSER_PREFS_H_