diff options
author | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-22 17:24:44 +0000 |
---|---|---|
committer | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-22 17:24:44 +0000 |
commit | 5b19952e27008d9cca170c1a517987795d145928 (patch) | |
tree | 34fea6a6f74a0388c68c4ba8cd8846f3ac879027 /chrome/browser/accessibility | |
parent | 96828ec57f67f91b3b1b2269963680501a6de4b9 (diff) | |
download | chromium_src-5b19952e27008d9cca170c1a517987795d145928.zip chromium_src-5b19952e27008d9cca170c1a517987795d145928.tar.gz chromium_src-5b19952e27008d9cca170c1a517987795d145928.tar.bz2 |
Split PrefService into PrefService, PrefServiceSimple and PrefServiceSyncable.
The first two (PrefServiceSimple is a subclass of PrefService) know
nothing about sync or any Chrome or content concepts.
The third (PrefServiceSyncable, a separate subclass of PrefService)
knows about sync and requires users to choose whether each individual
preference is syncable or not when it is registered.
BrowserProcess::local_state() is a PrefServiceSimple after this
change, and Profile::prefs() is a PrefServiceSyncable.
COLLABORATOR=kaiwang@chromium.org
TBR=ben@chromium.org
BUG=155525
Review URL: https://chromiumcodereview.appspot.com/11570009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174531 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/accessibility')
-rw-r--r-- | chrome/browser/accessibility/invert_bubble_prefs.cc | 4 | ||||
-rw-r--r-- | chrome/browser/accessibility/invert_bubble_prefs.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/accessibility/invert_bubble_prefs.cc b/chrome/browser/accessibility/invert_bubble_prefs.cc index 7bb6dbb..001bcd3 100644 --- a/chrome/browser/accessibility/invert_bubble_prefs.cc +++ b/chrome/browser/accessibility/invert_bubble_prefs.cc @@ -9,10 +9,10 @@ namespace chrome { -void RegisterInvertBubbleUserPrefs(PrefService* prefs) { +void RegisterInvertBubbleUserPrefs(PrefServiceSyncable* prefs) { prefs->RegisterBooleanPref(prefs::kInvertNotificationShown, false, - PrefService::UNSYNCABLE_PREF); + PrefServiceSyncable::UNSYNCABLE_PREF); } } // namespace chrome diff --git a/chrome/browser/accessibility/invert_bubble_prefs.h b/chrome/browser/accessibility/invert_bubble_prefs.h index 70e9790..94dba93 100644 --- a/chrome/browser/accessibility/invert_bubble_prefs.h +++ b/chrome/browser/accessibility/invert_bubble_prefs.h @@ -5,11 +5,11 @@ #ifndef CHROME_BROWSER_ACCESSIBILITY_INVERT_BUBBLE_PREFS_H_ #define CHROME_BROWSER_ACCESSIBILITY_INVERT_BUBBLE_PREFS_H_ -class PrefService; +class PrefServiceSyncable; namespace chrome { -void RegisterInvertBubbleUserPrefs(PrefService* prefs); +void RegisterInvertBubbleUserPrefs(PrefServiceSyncable* prefs); } // namespace chrome |