OLD | NEW |
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 "base/prefs/scoped_user_pref_update.h" | 9 #include "base/prefs/scoped_user_pref_update.h" |
10 #include "chrome/browser/first_run/first_run.h" | 10 #include "chrome/browser/first_run/first_run.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 #include "components/pref_registry/pref_registry_syncable.h" | 13 #include "components/pref_registry/pref_registry_syncable.h" |
14 #include "components/translate/core/common/translate_pref_names.h" | 14 #include "components/translate/core/common/translate_pref_names.h" |
15 | 15 |
16 namespace chrome { | 16 namespace chrome { |
17 | 17 |
18 void RegisterBrowserPrefs(PrefRegistrySimple* registry) { | 18 void RegisterBrowserPrefs(PrefRegistrySimple* registry) { |
19 registry->RegisterIntegerPref(prefs::kOptionsWindowLastTabIndex, 0); | 19 registry->RegisterIntegerPref(prefs::kOptionsWindowLastTabIndex, 0); |
| 20 registry->RegisterIntegerPref(prefs::kExtensionSidebarWidth, -1); |
20 registry->RegisterBooleanPref(prefs::kAllowFileSelectionDialogs, true); | 21 registry->RegisterBooleanPref(prefs::kAllowFileSelectionDialogs, true); |
21 registry->RegisterIntegerPref(prefs::kShowFirstRunBubbleOption, | 22 registry->RegisterIntegerPref(prefs::kShowFirstRunBubbleOption, |
22 first_run::FIRST_RUN_BUBBLE_DONT_SHOW); | 23 first_run::FIRST_RUN_BUBBLE_DONT_SHOW); |
23 } | 24 } |
24 | 25 |
25 void RegisterBrowserUserPrefs(user_prefs::PrefRegistrySyncable* registry) { | 26 void RegisterBrowserUserPrefs(user_prefs::PrefRegistrySyncable* registry) { |
26 registry->RegisterBooleanPref( | 27 registry->RegisterBooleanPref( |
27 prefs::kHomePageIsNewTabPage, | 28 prefs::kHomePageIsNewTabPage, |
28 true, | 29 true, |
29 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 30 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 registry->RegisterBooleanPref(prefs::kPluginsAllowOutdated, false); | 119 registry->RegisterBooleanPref(prefs::kPluginsAllowOutdated, false); |
119 registry->RegisterBooleanPref(prefs::kPluginsAlwaysAuthorize, false); | 120 registry->RegisterBooleanPref(prefs::kPluginsAlwaysAuthorize, false); |
120 registry->RegisterBooleanPref(prefs::kClearPluginLSODataEnabled, true); | 121 registry->RegisterBooleanPref(prefs::kClearPluginLSODataEnabled, true); |
121 registry->RegisterBooleanPref(prefs::kHideWebStoreIcon, false); | 122 registry->RegisterBooleanPref(prefs::kHideWebStoreIcon, false); |
122 #if !defined(OS_MACOSX) | 123 #if !defined(OS_MACOSX) |
123 registry->RegisterBooleanPref(prefs::kFullscreenAllowed, true); | 124 registry->RegisterBooleanPref(prefs::kFullscreenAllowed, true); |
124 #endif | 125 #endif |
125 } | 126 } |
126 | 127 |
127 } // namespace chrome | 128 } // namespace chrome |
OLD | NEW |