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 "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 Loading... |
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 |
OLD | NEW |