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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 60 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
60 registry->RegisterBooleanPref( | 61 registry->RegisterBooleanPref( |
61 prefs::kDeleteFormData, | 62 prefs::kDeleteFormData, |
62 false, | 63 false, |
63 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 64 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
64 registry->RegisterBooleanPref( | 65 registry->RegisterBooleanPref( |
65 prefs::kDeleteHostedAppsData, | 66 prefs::kDeleteHostedAppsData, |
66 false, | 67 false, |
67 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 68 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
68 registry->RegisterIntegerPref( | 69 registry->RegisterIntegerPref( |
69 prefs::kDeleteTimePeriod, | 70 browsing_data::prefs::kDeleteTimePeriod, 0, |
70 0, | |
71 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 71 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
72 registry->RegisterIntegerPref( | 72 registry->RegisterIntegerPref( |
73 prefs::kClearBrowsingDataHistoryNoticeShownTimes, 0); | 73 prefs::kClearBrowsingDataHistoryNoticeShownTimes, 0); |
74 registry->RegisterInt64Pref(prefs::kLastClearBrowsingDataTime, 0); | 74 registry->RegisterInt64Pref(prefs::kLastClearBrowsingDataTime, 0); |
75 registry->RegisterIntegerPref(prefs::kModuleConflictBubbleShown, 0); | 75 registry->RegisterIntegerPref(prefs::kModuleConflictBubbleShown, 0); |
76 registry->RegisterInt64Pref(prefs::kDefaultBrowserLastDeclined, 0); | 76 registry->RegisterInt64Pref(prefs::kDefaultBrowserLastDeclined, 0); |
77 bool reset_check_default = false; | 77 bool reset_check_default = false; |
78 #if defined(OS_WIN) | 78 #if defined(OS_WIN) |
79 reset_check_default = base::win::GetVersion() >= base::win::VERSION_WIN10; | 79 reset_check_default = base::win::GetVersion() >= base::win::VERSION_WIN10; |
80 #endif | 80 #endif |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 registry->RegisterBooleanPref( | 143 registry->RegisterBooleanPref( |
144 prefs::kHideFullscreenToolbar, | 144 prefs::kHideFullscreenToolbar, |
145 false, | 145 false, |
146 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 146 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
147 #else | 147 #else |
148 registry->RegisterBooleanPref(prefs::kFullscreenAllowed, true); | 148 registry->RegisterBooleanPref(prefs::kFullscreenAllowed, true); |
149 #endif | 149 #endif |
150 } | 150 } |
151 | 151 |
152 } // namespace chrome | 152 } // namespace chrome |
OLD | NEW |