Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: chrome/browser/ui/browser_ui_prefs.cc

Issue 11741003: Remove PrefServiceSimple, replacing it with PrefService and PrefRegistrySimple. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update production interfaces based on review comments. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #include "chrome/browser/ui/browser_ui_prefs.h" 5 #include "chrome/browser/ui/browser_ui_prefs.h"
6 6
7 #include "chrome/browser/first_run/first_run.h" 7 #include "chrome/browser/first_run/first_run.h"
8 #include "chrome/browser/prefs/pref_registry_simple.h"
8 #include "chrome/browser/prefs/pref_service.h" 9 #include "chrome/browser/prefs/pref_service.h"
9 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/common/pref_names.h" 11 #include "chrome/common/pref_names.h"
11 12
12 namespace chrome { 13 namespace chrome {
13 14
14 void RegisterBrowserPrefs(PrefServiceSimple* prefs) { 15 void RegisterBrowserPrefs(PrefRegistrySimple* prefs) {
15 prefs->RegisterIntegerPref(prefs::kOptionsWindowLastTabIndex, 0); 16 prefs->RegisterIntegerPref(prefs::kOptionsWindowLastTabIndex, 0);
16 prefs->RegisterBooleanPref(prefs::kAllowFileSelectionDialogs, true); 17 prefs->RegisterBooleanPref(prefs::kAllowFileSelectionDialogs, true);
17 prefs->RegisterIntegerPref(prefs::kShowFirstRunBubbleOption, 18 prefs->RegisterIntegerPref(prefs::kShowFirstRunBubbleOption,
18 first_run::FIRST_RUN_BUBBLE_DONT_SHOW); 19 first_run::FIRST_RUN_BUBBLE_DONT_SHOW);
19 } 20 }
20 21
21 void RegisterBrowserUserPrefs(PrefServiceSyncable* prefs) { 22 void RegisterBrowserUserPrefs(PrefServiceSyncable* prefs) {
22 prefs->RegisterBooleanPref(prefs::kHomePageChanged, 23 prefs->RegisterBooleanPref(prefs::kHomePageChanged,
23 false, 24 false,
24 PrefServiceSyncable::UNSYNCABLE_PREF); 25 PrefServiceSyncable::UNSYNCABLE_PREF);
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // TODO(joi): Switch to official way of registering local prefs 167 // TODO(joi): Switch to official way of registering local prefs
167 // for this class, i.e. in a function called from 168 // for this class, i.e. in a function called from
168 // browser_prefs::RegisterUserPrefs. 169 // browser_prefs::RegisterUserPrefs.
169 prefs->RegisterDictionaryPref(window_pref.c_str(), 170 prefs->RegisterDictionaryPref(window_pref.c_str(),
170 PrefServiceSyncable::UNSYNCABLE_PREF); 171 PrefServiceSyncable::UNSYNCABLE_PREF);
171 } 172 }
172 } 173 }
173 174
174 175
175 } // namespace chrome 176 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698