| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 prefs::kLastClearBrowsingDataTime, | 80 prefs::kLastClearBrowsingDataTime, |
| 81 0, | 81 0, |
| 82 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 82 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 83 registry->RegisterIntegerPref(prefs::kModuleConflictBubbleShown, | 83 registry->RegisterIntegerPref(prefs::kModuleConflictBubbleShown, |
| 84 0, | 84 0, |
| 85 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 85 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 86 registry->RegisterBooleanPref( | 86 registry->RegisterBooleanPref( |
| 87 prefs::kCheckDefaultBrowser, | 87 prefs::kCheckDefaultBrowser, |
| 88 true, | 88 true, |
| 89 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 89 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 90 #if defined(OS_WIN) | |
| 91 // As with Mac-spacific code above, it should be in a platform-specific | |
| 92 // section somewhere, but there is no good place for it. | |
| 93 registry->RegisterBooleanPref( | |
| 94 prefs::kSuppressSwitchToMetroModeOnSetDefault, | |
| 95 false, | |
| 96 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | |
| 97 #endif | |
| 98 registry->RegisterBooleanPref( | 90 registry->RegisterBooleanPref( |
| 99 prefs::kWebAppCreateOnDesktop, | 91 prefs::kWebAppCreateOnDesktop, |
| 100 true, | 92 true, |
| 101 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 93 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 102 registry->RegisterBooleanPref( | 94 registry->RegisterBooleanPref( |
| 103 prefs::kWebAppCreateInAppsMenu, | 95 prefs::kWebAppCreateInAppsMenu, |
| 104 true, | 96 true, |
| 105 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 97 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 106 registry->RegisterBooleanPref( | 98 registry->RegisterBooleanPref( |
| 107 prefs::kWebAppCreateInQuickLaunchBar, | 99 prefs::kWebAppCreateInQuickLaunchBar, |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 scoped_refptr<user_prefs::PrefRegistrySyncable> registry( | 201 scoped_refptr<user_prefs::PrefRegistrySyncable> registry( |
| 210 static_cast<user_prefs::PrefRegistrySyncable*>( | 202 static_cast<user_prefs::PrefRegistrySyncable*>( |
| 211 prefs->DeprecatedGetPrefRegistry())); | 203 prefs->DeprecatedGetPrefRegistry())); |
| 212 registry->RegisterDictionaryPref( | 204 registry->RegisterDictionaryPref( |
| 213 window_pref.c_str(), user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 205 window_pref.c_str(), user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 214 } | 206 } |
| 215 } | 207 } |
| 216 | 208 |
| 217 | 209 |
| 218 } // namespace chrome | 210 } // namespace chrome |
| OLD | NEW |