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

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

Issue 1737413002: Modified the behavior of "Hide Toolbar in Full Screen" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Feb -> March Created 4 years, 9 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 "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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 // This really belongs in platform code, but there's no good place to 128 // This really belongs in platform code, but there's no good place to
129 // initialize it between the time when the AppController is created 129 // initialize it between the time when the AppController is created
130 // (where there's no profile) and the time the controller gets another 130 // (where there's no profile) and the time the controller gets another
131 // crack at the start of the main event loop. By that time, 131 // crack at the start of the main event loop. By that time,
132 // StartupBrowserCreator has already created the browser window, and it's too 132 // StartupBrowserCreator has already created the browser window, and it's too
133 // late: we need the pref to be already initialized. Doing it here also saves 133 // late: we need the pref to be already initialized. Doing it here also saves
134 // us from having to hard-code pref registration in the several unit tests 134 // us from having to hard-code pref registration in the several unit tests
135 // that use this preference. 135 // that use this preference.
136 registry->RegisterBooleanPref(prefs::kShowUpdatePromotionInfoBar, true); 136 registry->RegisterBooleanPref(prefs::kShowUpdatePromotionInfoBar, true);
137 registry->RegisterBooleanPref( 137 registry->RegisterBooleanPref(
138 prefs::kShowFullscreenToolbar,
139 true,
140 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
141 registry->RegisterBooleanPref(
138 prefs::kHideFullscreenToolbar, 142 prefs::kHideFullscreenToolbar,
139 false, 143 false,
140 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 144 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
141 #else 145 #else
142 registry->RegisterBooleanPref(prefs::kFullscreenAllowed, true); 146 registry->RegisterBooleanPref(prefs::kFullscreenAllowed, true);
143 #endif 147 #endif
144 } 148 }
145 149
146 } // namespace chrome 150 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_commands_mac.cc ('k') | chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698