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

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

Issue 2896763003: Remove the kHideFullscreenToolbar Preference (Closed)
Patch Set: Created 3 years, 7 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 | « chrome/browser/prefs/browser_prefs.cc ('k') | chrome/common/pref_names.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 "build/build_config.h" 7 #include "build/build_config.h"
8 #include "chrome/browser/first_run/first_run.h" 8 #include "chrome/browser/first_run/first_run.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/common/pref_names.h" 10 #include "chrome/common/pref_names.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // crack at the start of the main event loop. By that time, 105 // crack at the start of the main event loop. By that time,
106 // StartupBrowserCreator has already created the browser window, and it's too 106 // StartupBrowserCreator has already created the browser window, and it's too
107 // late: we need the pref to be already initialized. Doing it here also saves 107 // late: we need the pref to be already initialized. Doing it here also saves
108 // us from having to hard-code pref registration in the several unit tests 108 // us from having to hard-code pref registration in the several unit tests
109 // that use this preference. 109 // that use this preference.
110 registry->RegisterBooleanPref(prefs::kShowUpdatePromotionInfoBar, true); 110 registry->RegisterBooleanPref(prefs::kShowUpdatePromotionInfoBar, true);
111 registry->RegisterBooleanPref( 111 registry->RegisterBooleanPref(
112 prefs::kShowFullscreenToolbar, 112 prefs::kShowFullscreenToolbar,
113 true, 113 true,
114 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 114 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
115 registry->RegisterBooleanPref(
116 prefs::kHideFullscreenToolbar,
117 false,
118 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
119 #else 115 #else
120 registry->RegisterBooleanPref(prefs::kFullscreenAllowed, true); 116 registry->RegisterBooleanPref(prefs::kFullscreenAllowed, true);
121 #endif 117 #endif
122 } 118 }
123 119
124 } // namespace chrome 120 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/prefs/browser_prefs.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698