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/pref_registry/pref_registry_syncable.h" | 11 #include "components/pref_registry/pref_registry_syncable.h" |
12 #include "components/prefs/pref_registry_simple.h" | 12 #include "components/prefs/pref_registry_simple.h" |
13 #include "components/prefs/pref_service.h" | 13 #include "components/prefs/pref_service.h" |
14 #include "components/prefs/scoped_user_pref_update.h" | 14 #include "components/prefs/scoped_user_pref_update.h" |
15 #include "components/translate/core/common/translate_pref_names.h" | 15 #include "components/translate/core/common/translate_pref_names.h" |
16 #include "content/public/common/webrtc_ip_handling_policy.h" | 16 #include "content/public/common/webrtc_ip_handling_policy.h" |
| 17 #include "media/media_features.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 |
21 | 22 |
22 namespace { | 23 namespace { |
23 | 24 |
24 uint32_t GetHomeButtonAndHomePageIsNewTabPageFlags() { | 25 uint32_t GetHomeButtonAndHomePageIsNewTabPageFlags() { |
25 #if defined(OS_IOS) || defined(OS_ANDROID) | 26 #if defined(OS_IOS) || defined(OS_ANDROID) |
26 return PrefRegistry::NO_REGISTRATION_FLAGS; | 27 return PrefRegistry::NO_REGISTRATION_FLAGS; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 registry->RegisterBooleanPref(prefs::kImportAutofillFormData, true); | 74 registry->RegisterBooleanPref(prefs::kImportAutofillFormData, true); |
74 registry->RegisterBooleanPref(prefs::kImportBookmarks, true); | 75 registry->RegisterBooleanPref(prefs::kImportBookmarks, true); |
75 registry->RegisterBooleanPref(prefs::kImportHistory, true); | 76 registry->RegisterBooleanPref(prefs::kImportHistory, true); |
76 registry->RegisterBooleanPref(prefs::kImportHomepage, true); | 77 registry->RegisterBooleanPref(prefs::kImportHomepage, true); |
77 registry->RegisterBooleanPref(prefs::kImportSavedPasswords, true); | 78 registry->RegisterBooleanPref(prefs::kImportSavedPasswords, true); |
78 registry->RegisterBooleanPref(prefs::kImportSearchEngine, true); | 79 registry->RegisterBooleanPref(prefs::kImportSearchEngine, true); |
79 registry->RegisterBooleanPref( | 80 registry->RegisterBooleanPref( |
80 prefs::kEnableDoNotTrack, | 81 prefs::kEnableDoNotTrack, |
81 false, | 82 false, |
82 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 83 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
83 #if defined(ENABLE_WEBRTC) | 84 #if BUILDFLAG(ENABLE_WEBRTC) |
84 // TODO(guoweis): Remove next 2 options at M50. | 85 // TODO(guoweis): Remove next 2 options at M50. |
85 registry->RegisterBooleanPref(prefs::kWebRTCMultipleRoutesEnabled, true); | 86 registry->RegisterBooleanPref(prefs::kWebRTCMultipleRoutesEnabled, true); |
86 registry->RegisterBooleanPref(prefs::kWebRTCNonProxiedUdpEnabled, true); | 87 registry->RegisterBooleanPref(prefs::kWebRTCNonProxiedUdpEnabled, true); |
87 registry->RegisterStringPref(prefs::kWebRTCIPHandlingPolicy, | 88 registry->RegisterStringPref(prefs::kWebRTCIPHandlingPolicy, |
88 content::kWebRTCIPHandlingDefault); | 89 content::kWebRTCIPHandlingDefault); |
89 registry->RegisterStringPref(prefs::kWebRTCUDPPortRange, std::string()); | 90 registry->RegisterStringPref(prefs::kWebRTCUDPPortRange, std::string()); |
90 #endif | 91 #endif |
91 | 92 |
92 // Dictionaries to keep track of default tasks in the file browser. | 93 // Dictionaries to keep track of default tasks in the file browser. |
93 registry->RegisterDictionaryPref( | 94 registry->RegisterDictionaryPref( |
(...skipping 26 matching lines...) Expand all Loading... |
120 registry->RegisterBooleanPref( | 121 registry->RegisterBooleanPref( |
121 prefs::kHideFullscreenToolbar, | 122 prefs::kHideFullscreenToolbar, |
122 false, | 123 false, |
123 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 124 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
124 #else | 125 #else |
125 registry->RegisterBooleanPref(prefs::kFullscreenAllowed, true); | 126 registry->RegisterBooleanPref(prefs::kFullscreenAllowed, true); |
126 #endif | 127 #endif |
127 } | 128 } |
128 | 129 |
129 } // namespace chrome | 130 } // namespace chrome |
OLD | NEW |