| 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" |
| 11 #include "components/browsing_data/pref_names.h" |
| 11 #include "components/pref_registry/pref_registry_syncable.h" | 12 #include "components/pref_registry/pref_registry_syncable.h" |
| 12 #include "components/prefs/pref_registry_simple.h" | 13 #include "components/prefs/pref_registry_simple.h" |
| 13 #include "components/prefs/pref_service.h" | 14 #include "components/prefs/pref_service.h" |
| 14 #include "components/prefs/scoped_user_pref_update.h" | 15 #include "components/prefs/scoped_user_pref_update.h" |
| 15 #include "components/translate/core/common/translate_pref_names.h" | 16 #include "components/translate/core/common/translate_pref_names.h" |
| 16 #include "content/public/common/webrtc_ip_handling_policy.h" | 17 #include "content/public/common/webrtc_ip_handling_policy.h" |
| 17 | 18 |
| 18 #if defined(OS_WIN) | 19 #if defined(OS_WIN) |
| 19 #include "base/win/windows_version.h" | 20 #include "base/win/windows_version.h" |
| 20 #endif | 21 #endif |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 74 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 74 registry->RegisterBooleanPref( | 75 registry->RegisterBooleanPref( |
| 75 prefs::kDeleteHostedAppsData, | 76 prefs::kDeleteHostedAppsData, |
| 76 false, | 77 false, |
| 77 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 78 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 78 registry->RegisterBooleanPref( | 79 registry->RegisterBooleanPref( |
| 79 prefs::kDeleteMediaLicenses, | 80 prefs::kDeleteMediaLicenses, |
| 80 false, | 81 false, |
| 81 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 82 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 82 registry->RegisterIntegerPref( | 83 registry->RegisterIntegerPref( |
| 83 prefs::kDeleteTimePeriod, | 84 browsing_data::prefs::kDeleteTimePeriod, 0, |
| 84 0, | |
| 85 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 85 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 86 registry->RegisterIntegerPref( | 86 registry->RegisterIntegerPref( |
| 87 prefs::kClearBrowsingDataHistoryNoticeShownTimes, 0); | 87 prefs::kClearBrowsingDataHistoryNoticeShownTimes, 0); |
| 88 registry->RegisterInt64Pref(prefs::kLastClearBrowsingDataTime, 0); | 88 registry->RegisterInt64Pref(prefs::kLastClearBrowsingDataTime, 0); |
| 89 registry->RegisterIntegerPref(prefs::kModuleConflictBubbleShown, 0); | 89 registry->RegisterIntegerPref(prefs::kModuleConflictBubbleShown, 0); |
| 90 registry->RegisterInt64Pref(prefs::kDefaultBrowserLastDeclined, 0); | 90 registry->RegisterInt64Pref(prefs::kDefaultBrowserLastDeclined, 0); |
| 91 bool reset_check_default = false; | 91 bool reset_check_default = false; |
| 92 #if defined(OS_WIN) | 92 #if defined(OS_WIN) |
| 93 reset_check_default = base::win::GetVersion() >= base::win::VERSION_WIN10; | 93 reset_check_default = base::win::GetVersion() >= base::win::VERSION_WIN10; |
| 94 #endif | 94 #endif |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 registry->RegisterBooleanPref( | 157 registry->RegisterBooleanPref( |
| 158 prefs::kHideFullscreenToolbar, | 158 prefs::kHideFullscreenToolbar, |
| 159 false, | 159 false, |
| 160 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 160 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 161 #else | 161 #else |
| 162 registry->RegisterBooleanPref(prefs::kFullscreenAllowed, true); | 162 registry->RegisterBooleanPref(prefs::kFullscreenAllowed, true); |
| 163 #endif | 163 #endif |
| 164 } | 164 } |
| 165 | 165 |
| 166 } // namespace chrome | 166 } // namespace chrome |
| OLD | NEW |