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

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

Issue 1169823005: Add sidebar views implementation using ExtensionSystem SidebarManager Base URL: https://chromium.googlesource.com/chromium/src.git@patch-a
Patch Set: Rebased patch set to 1168383002/#ps220001 Created 5 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
« no previous file with comments | « no previous file | chrome/browser/ui/extensions/extension_action_platform_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 registry->RegisterBooleanPref(prefs::kPluginsAllowOutdated, false); 120 registry->RegisterBooleanPref(prefs::kPluginsAllowOutdated, false);
120 registry->RegisterBooleanPref(prefs::kPluginsAlwaysAuthorize, false); 121 registry->RegisterBooleanPref(prefs::kPluginsAlwaysAuthorize, false);
121 registry->RegisterBooleanPref(prefs::kClearPluginLSODataEnabled, true); 122 registry->RegisterBooleanPref(prefs::kClearPluginLSODataEnabled, true);
122 registry->RegisterBooleanPref(prefs::kHideWebStoreIcon, false); 123 registry->RegisterBooleanPref(prefs::kHideWebStoreIcon, false);
123 #if !defined(OS_MACOSX) 124 #if !defined(OS_MACOSX)
124 registry->RegisterBooleanPref(prefs::kFullscreenAllowed, true); 125 registry->RegisterBooleanPref(prefs::kFullscreenAllowed, true);
125 #endif 126 #endif
126 } 127 }
127 128
128 } // namespace chrome 129 } // namespace chrome
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/extensions/extension_action_platform_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698