Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(406)

Side by Side Diff: chrome/browser/ui/browser_ui_prefs.cc

Issue 916873004: Add a Preference to allow WebRTC only bind to "any address" (all 0s) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/renderer_preferences_util.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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::kWebRTCMultipleRoutesEnabled,
163 true,
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
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
OLDNEW
« no previous file with comments | « chrome/browser/renderer_preferences_util.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698