| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 false, | 72 false, |
| 73 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 73 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 74 registry->RegisterIntegerPref( | 74 registry->RegisterIntegerPref( |
| 75 prefs::kDeleteTimePeriod, | 75 prefs::kDeleteTimePeriod, |
| 76 0, | 76 0, |
| 77 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 77 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 78 registry->RegisterInt64Pref( | 78 registry->RegisterInt64Pref( |
| 79 prefs::kLastClearBrowsingDataTime, | 79 prefs::kLastClearBrowsingDataTime, |
| 80 0, | 80 0, |
| 81 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 81 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 82 registry->RegisterIntegerPref(prefs::kModuleConflictBubbleShown, |
| 83 0, |
| 84 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 82 registry->RegisterBooleanPref( | 85 registry->RegisterBooleanPref( |
| 83 prefs::kCheckDefaultBrowser, | 86 prefs::kCheckDefaultBrowser, |
| 84 true, | 87 true, |
| 85 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 88 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 86 #if defined(OS_WIN) | 89 #if defined(OS_WIN) |
| 87 // As with Mac-spacific code above, it should be in a platform-specific | 90 // As with Mac-spacific code above, it should be in a platform-specific |
| 88 // section somewhere, but there is no good place for it. | 91 // section somewhere, but there is no good place for it. |
| 89 registry->RegisterBooleanPref( | 92 registry->RegisterBooleanPref( |
| 90 prefs::kSuppressSwitchToMetroModeOnSetDefault, | 93 prefs::kSuppressSwitchToMetroModeOnSetDefault, |
| 91 false, | 94 false, |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 scoped_refptr<user_prefs::PrefRegistrySyncable> registry( | 232 scoped_refptr<user_prefs::PrefRegistrySyncable> registry( |
| 230 static_cast<user_prefs::PrefRegistrySyncable*>( | 233 static_cast<user_prefs::PrefRegistrySyncable*>( |
| 231 prefs->DeprecatedGetPrefRegistry())); | 234 prefs->DeprecatedGetPrefRegistry())); |
| 232 registry->RegisterDictionaryPref( | 235 registry->RegisterDictionaryPref( |
| 233 window_pref.c_str(), user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 236 window_pref.c_str(), user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 234 } | 237 } |
| 235 } | 238 } |
| 236 | 239 |
| 237 | 240 |
| 238 } // namespace chrome | 241 } // namespace chrome |
| OLD | NEW |