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

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

Issue 518063002: Settings to control Add Person and Browse as Guest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: estade nits; move pref registry Created 6 years, 3 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
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" 7 #include "base/prefs/pref_registry_simple.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "chrome/browser/first_run/first_run.h" 9 #include "chrome/browser/first_run/first_run.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/common/pref_names.h" 11 #include "chrome/common/pref_names.h"
12 #include "components/pref_registry/pref_registry_syncable.h" 12 #include "components/pref_registry/pref_registry_syncable.h"
13 #include "components/translate/core/common/translate_pref_names.h" 13 #include "components/translate/core/common/translate_pref_names.h"
14 14
15 namespace chrome { 15 namespace chrome {
16 16
17 void RegisterBrowserPrefs(PrefRegistrySimple* registry) { 17 void RegisterBrowserPrefs(PrefRegistrySimple* registry) {
18 registry->RegisterIntegerPref(prefs::kOptionsWindowLastTabIndex, 0); 18 registry->RegisterIntegerPref(prefs::kOptionsWindowLastTabIndex, 0);
19 registry->RegisterBooleanPref(prefs::kAllowFileSelectionDialogs, true); 19 registry->RegisterBooleanPref(prefs::kAllowFileSelectionDialogs, true);
20 registry->RegisterIntegerPref(prefs::kShowFirstRunBubbleOption, 20 registry->RegisterIntegerPref(prefs::kShowFirstRunBubbleOption,
21 first_run::FIRST_RUN_BUBBLE_DONT_SHOW); 21 first_run::FIRST_RUN_BUBBLE_DONT_SHOW);
22 registry->RegisterBooleanPref(prefs::kBrowserGuestModeEnabled, true);
23 registry->RegisterBooleanPref(prefs::kBrowserAddPersonEnabled, true);
22 } 24 }
23 25
24 void RegisterBrowserUserPrefs(user_prefs::PrefRegistrySyncable* registry) { 26 void RegisterBrowserUserPrefs(user_prefs::PrefRegistrySyncable* registry) {
25 registry->RegisterBooleanPref( 27 registry->RegisterBooleanPref(
26 prefs::kHomePageIsNewTabPage, 28 prefs::kHomePageIsNewTabPage,
27 true, 29 true,
28 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 30 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
29 registry->RegisterBooleanPref( 31 registry->RegisterBooleanPref(
30 prefs::kShowHomeButton, 32 prefs::kShowHomeButton,
31 false, 33 false,
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 scoped_refptr<user_prefs::PrefRegistrySyncable> registry( 200 scoped_refptr<user_prefs::PrefRegistrySyncable> registry(
199 static_cast<user_prefs::PrefRegistrySyncable*>( 201 static_cast<user_prefs::PrefRegistrySyncable*>(
200 prefs->DeprecatedGetPrefRegistry())); 202 prefs->DeprecatedGetPrefRegistry()));
201 registry->RegisterDictionaryPref( 203 registry->RegisterDictionaryPref(
202 window_pref.c_str(), user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 204 window_pref.c_str(), user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
203 } 205 }
204 } 206 }
205 207
206 208
207 } // namespace chrome 209 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698