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

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

Issue 12211105: Move remaining non-test, non-Chrome-specific Prefs code to base/prefs/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, merge to LKGR. 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 "base/prefs/pref_registry_simple.h"
8 #include "base/prefs/pref_service.h"
7 #include "chrome/browser/first_run/first_run.h" 9 #include "chrome/browser/first_run/first_run.h"
8 #include "chrome/browser/prefs/pref_registry_simple.h"
9 #include "chrome/browser/prefs/pref_registry_syncable.h" 10 #include "chrome/browser/prefs/pref_registry_syncable.h"
10 #include "chrome/browser/prefs/pref_service.h"
11 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
12 #include "chrome/common/pref_names.h" 12 #include "chrome/common/pref_names.h"
13 13
14 namespace chrome { 14 namespace chrome {
15 15
16 void RegisterBrowserPrefs(PrefRegistrySimple* registry) { 16 void RegisterBrowserPrefs(PrefRegistrySimple* registry) {
17 registry->RegisterIntegerPref(prefs::kOptionsWindowLastTabIndex, 0); 17 registry->RegisterIntegerPref(prefs::kOptionsWindowLastTabIndex, 0);
18 registry->RegisterBooleanPref(prefs::kAllowFileSelectionDialogs, true); 18 registry->RegisterBooleanPref(prefs::kAllowFileSelectionDialogs, true);
19 registry->RegisterIntegerPref(prefs::kShowFirstRunBubbleOption, 19 registry->RegisterIntegerPref(prefs::kShowFirstRunBubbleOption,
20 first_run::FIRST_RUN_BUBBLE_DONT_SHOW); 20 first_run::FIRST_RUN_BUBBLE_DONT_SHOW);
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 // TODO(joi): Do all registration up front. 171 // TODO(joi): Do all registration up front.
172 scoped_refptr<PrefRegistrySyncable> registry( 172 scoped_refptr<PrefRegistrySyncable> registry(
173 static_cast<PrefRegistrySyncable*>(prefs->DeprecatedGetPrefRegistry())); 173 static_cast<PrefRegistrySyncable*>(prefs->DeprecatedGetPrefRegistry()));
174 registry->RegisterDictionaryPref(window_pref.c_str(), 174 registry->RegisterDictionaryPref(window_pref.c_str(),
175 PrefRegistrySyncable::UNSYNCABLE_PREF); 175 PrefRegistrySyncable::UNSYNCABLE_PREF);
176 } 176 }
177 } 177 }
178 178
179 179
180 } // namespace chrome 180 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_navigator_browsertest.cc ('k') | chrome/browser/ui/browser_view_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698