| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |