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 "base/prefs/scoped_user_pref_update.h" | 9 #include "base/prefs/scoped_user_pref_update.h" |
10 #include "chrome/browser/first_run/first_run.h" | 10 #include "chrome/browser/first_run/first_run.h" |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
150 true, | 150 true, |
151 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 151 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
152 registry->RegisterBooleanPref( | 152 registry->RegisterBooleanPref( |
153 prefs::kImportSearchEngine, | 153 prefs::kImportSearchEngine, |
154 true, | 154 true, |
155 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 155 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
156 registry->RegisterBooleanPref( | 156 registry->RegisterBooleanPref( |
157 prefs::kEnableDoNotTrack, | 157 prefs::kEnableDoNotTrack, |
158 false, | 158 false, |
159 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 159 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
160 #if defined(ENABLE_WEBRTC) | |
161 registry->RegisterBooleanPref( | |
162 prefs::kWebRTCMultipleRoutesDisabled, | |
juberti2
2015/02/18 07:01:55
probably clearer to have kWebRTCMultipleRoutesEnab
guoweis_left_chromium
2015/02/18 19:20:35
Done.
| |
163 false, | |
164 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | |
165 #endif | |
160 | 166 |
161 // Dictionaries to keep track of default tasks in the file browser. | 167 // Dictionaries to keep track of default tasks in the file browser. |
162 registry->RegisterDictionaryPref( | 168 registry->RegisterDictionaryPref( |
163 prefs::kDefaultTasksByMimeType, | 169 prefs::kDefaultTasksByMimeType, |
164 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 170 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
165 registry->RegisterDictionaryPref( | 171 registry->RegisterDictionaryPref( |
166 prefs::kDefaultTasksBySuffix, | 172 prefs::kDefaultTasksBySuffix, |
167 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 173 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
168 | 174 |
169 // We need to register the type of these preferences in order to query | 175 // We need to register the type of these preferences in order to query |
(...skipping 16 matching lines...) Expand all Loading... | |
186 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 192 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
187 #if !defined(OS_MACOSX) | 193 #if !defined(OS_MACOSX) |
188 registry->RegisterBooleanPref( | 194 registry->RegisterBooleanPref( |
189 prefs::kFullscreenAllowed, | 195 prefs::kFullscreenAllowed, |
190 true, | 196 true, |
191 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 197 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
192 #endif | 198 #endif |
193 } | 199 } |
194 | 200 |
195 } // namespace chrome | 201 } // namespace chrome |
OLD | NEW |