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 "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 "chrome/browser/first_run/first_run.h" | 9 #include "chrome/browser/first_run/first_run.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 85 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
86 #if defined(OS_WIN) | 86 #if defined(OS_WIN) |
87 // As with Mac-spacific code above, it should be in a platform-specific | 87 // As with Mac-spacific code above, it should be in a platform-specific |
88 // section somewhere, but there is no good place for it. | 88 // section somewhere, but there is no good place for it. |
89 registry->RegisterBooleanPref( | 89 registry->RegisterBooleanPref( |
90 prefs::kSuppressSwitchToMetroModeOnSetDefault, | 90 prefs::kSuppressSwitchToMetroModeOnSetDefault, |
91 false, | 91 false, |
92 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 92 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
93 #endif | 93 #endif |
94 registry->RegisterBooleanPref( | 94 registry->RegisterBooleanPref( |
95 prefs::kShowOmniboxSearchHint, | |
96 true, | |
97 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | |
98 registry->RegisterBooleanPref( | |
99 prefs::kWebAppCreateOnDesktop, | 95 prefs::kWebAppCreateOnDesktop, |
100 true, | 96 true, |
101 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 97 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
102 registry->RegisterBooleanPref( | 98 registry->RegisterBooleanPref( |
103 prefs::kWebAppCreateInAppsMenu, | 99 prefs::kWebAppCreateInAppsMenu, |
104 true, | 100 true, |
105 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 101 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
106 registry->RegisterBooleanPref( | 102 registry->RegisterBooleanPref( |
107 prefs::kWebAppCreateInQuickLaunchBar, | 103 prefs::kWebAppCreateInQuickLaunchBar, |
108 true, | 104 true, |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 scoped_refptr<user_prefs::PrefRegistrySyncable> registry( | 229 scoped_refptr<user_prefs::PrefRegistrySyncable> registry( |
234 static_cast<user_prefs::PrefRegistrySyncable*>( | 230 static_cast<user_prefs::PrefRegistrySyncable*>( |
235 prefs->DeprecatedGetPrefRegistry())); | 231 prefs->DeprecatedGetPrefRegistry())); |
236 registry->RegisterDictionaryPref( | 232 registry->RegisterDictionaryPref( |
237 window_pref.c_str(), user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 233 window_pref.c_str(), user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
238 } | 234 } |
239 } | 235 } |
240 | 236 |
241 | 237 |
242 } // namespace chrome | 238 } // namespace chrome |
OLD | NEW |