Commit ab165571 authored by Tony Price's avatar Tony Price Committed by Commit Bot

Remove obsolete webrtc.nonproxied_udp_enabled pref

Bug: 982501
Change-Id: I5b25e2b8ce3d7e86527cbb59f9bce3d7e1a24dbc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2498562
Commit-Queue: Tony Price <toprice@chromium.org>
Reviewed-by: default avatarGuido Urdaneta <guidou@chromium.org>
Reviewed-by: default avatarAvi Drissman <avi@chromium.org>
Reviewed-by: default avatarDevlin <rdevlin.cronin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#824373}
parent a81b978c
...@@ -129,8 +129,6 @@ const PrefMappingEntry kPrefMapping[] = { ...@@ -129,8 +129,6 @@ const PrefMappingEntry kPrefMapping[] = {
APIPermission::kPrivacy, APIPermission::kPrivacy}, APIPermission::kPrivacy, APIPermission::kPrivacy},
{"translationServiceEnabled", prefs::kOfferTranslateEnabled, {"translationServiceEnabled", prefs::kOfferTranslateEnabled,
APIPermission::kPrivacy, APIPermission::kPrivacy}, APIPermission::kPrivacy, APIPermission::kPrivacy},
{"webRTCNonProxiedUdpEnabled", prefs::kWebRTCNonProxiedUdpEnabled,
APIPermission::kPrivacy, APIPermission::kPrivacy},
{"webRTCIPHandlingPolicy", prefs::kWebRTCIPHandlingPolicy, {"webRTCIPHandlingPolicy", prefs::kWebRTCIPHandlingPolicy,
APIPermission::kPrivacy, APIPermission::kPrivacy}, APIPermission::kPrivacy, APIPermission::kPrivacy},
{"webRTCUDPPortRange", prefs::kWebRTCUDPPortRange, APIPermission::kPrivacy, {"webRTCUDPPortRange", prefs::kWebRTCUDPPortRange, APIPermission::kPrivacy,
......
...@@ -165,7 +165,6 @@ IN_PROC_BROWSER_TEST_F(ExtensionPreferenceApiTest, Standard) { ...@@ -165,7 +165,6 @@ IN_PROC_BROWSER_TEST_F(ExtensionPreferenceApiTest, Standard) {
prefs->SetBoolean(password_manager::prefs::kCredentialsEnableService, false); prefs->SetBoolean(password_manager::prefs::kCredentialsEnableService, false);
prefs->SetBoolean(prefs::kSafeBrowsingEnabled, false); prefs->SetBoolean(prefs::kSafeBrowsingEnabled, false);
prefs->SetBoolean(prefs::kSearchSuggestEnabled, false); prefs->SetBoolean(prefs::kSearchSuggestEnabled, false);
prefs->SetBoolean(prefs::kWebRTCNonProxiedUdpEnabled, false);
prefs->SetString(prefs::kWebRTCIPHandlingPolicy, prefs->SetString(prefs::kWebRTCIPHandlingPolicy,
blink::kWebRTCIPHandlingDefaultPublicInterfaceOnly); blink::kWebRTCIPHandlingDefaultPublicInterfaceOnly);
......
...@@ -118,13 +118,6 @@ void UpdateFromSystemSettings(blink::RendererPreferences* prefs, ...@@ -118,13 +118,6 @@ void UpdateFromSystemSettings(blink::RendererPreferences* prefs,
prefs->caret_browsing_enabled); prefs->caret_browsing_enabled);
#endif #endif
// Handling the backward compatibility of previous boolean versions of policy
// controls.
if (!pref_service->HasPrefPath(prefs::kWebRTCIPHandlingPolicy) &&
!pref_service->GetBoolean(prefs::kWebRTCNonProxiedUdpEnabled)) {
prefs->webrtc_ip_handling_policy =
blink::kWebRTCIPHandlingDisableNonProxiedUdp;
}
if (prefs->webrtc_ip_handling_policy.empty()) { if (prefs->webrtc_ip_handling_policy.empty()) {
prefs->webrtc_ip_handling_policy = prefs->webrtc_ip_handling_policy =
pref_service->GetString(prefs::kWebRTCIPHandlingPolicy); pref_service->GetString(prefs::kWebRTCIPHandlingPolicy);
......
...@@ -86,8 +86,6 @@ void RegisterBrowserUserPrefs(user_prefs::PrefRegistrySyncable* registry) { ...@@ -86,8 +86,6 @@ void RegisterBrowserUserPrefs(user_prefs::PrefRegistrySyncable* registry) {
registry->RegisterBooleanPref(prefs::kPrintPreviewUseSystemDefaultPrinter, registry->RegisterBooleanPref(prefs::kPrintPreviewUseSystemDefaultPrinter,
false); false);
#endif #endif
// TODO(guoweis): Remove next option at M50.
registry->RegisterBooleanPref(prefs::kWebRTCNonProxiedUdpEnabled, true);
registry->RegisterStringPref(prefs::kWebRTCIPHandlingPolicy, registry->RegisterStringPref(prefs::kWebRTCIPHandlingPolicy,
blink::kWebRTCIPHandlingDefault); blink::kWebRTCIPHandlingDefault);
registry->RegisterStringPref(prefs::kWebRTCUDPPortRange, std::string()); registry->RegisterStringPref(prefs::kWebRTCUDPPortRange, std::string());
......
...@@ -82,8 +82,6 @@ PrefWatcher::PrefWatcher(Profile* profile) : profile_(profile) { ...@@ -82,8 +82,6 @@ PrefWatcher::PrefWatcher(Profile* profile) : profile_(profile) {
renderer_callback); renderer_callback);
profile_pref_change_registrar_.Add(prefs::kEnableEncryptedMedia, profile_pref_change_registrar_.Add(prefs::kEnableEncryptedMedia,
renderer_callback); renderer_callback);
profile_pref_change_registrar_.Add(prefs::kWebRTCNonProxiedUdpEnabled,
renderer_callback);
profile_pref_change_registrar_.Add(prefs::kWebRTCIPHandlingPolicy, profile_pref_change_registrar_.Add(prefs::kWebRTCIPHandlingPolicy,
renderer_callback); renderer_callback);
profile_pref_change_registrar_.Add(prefs::kWebRTCUDPPortRange, profile_pref_change_registrar_.Add(prefs::kWebRTCUDPPortRange,
......
...@@ -25,12 +25,6 @@ ...@@ -25,12 +25,6 @@
"value": ["networkPredictionEnabled", {"type":"boolean"}], "value": ["networkPredictionEnabled", {"type":"boolean"}],
"description": "If enabled, Chrome attempts to speed up your web browsing experience by pre-resolving DNS entries and preemptively opening TCP and SSL connections to servers. This preference only affects actions taken by Chrome's internal prediction service. It does not affect webpage-initiated prefectches or preconnects. This preference's value is a boolean, defaulting to <code>true</code>." "description": "If enabled, Chrome attempts to speed up your web browsing experience by pre-resolving DNS entries and preemptively opening TCP and SSL connections to servers. This preference only affects actions taken by Chrome's internal prediction service. It does not affect webpage-initiated prefectches or preconnects. This preference's value is a boolean, defaulting to <code>true</code>."
}, },
"webRTCNonProxiedUdpEnabled": {
"$ref": "types.ChromeSetting",
"value": ["webRTCNonProxiedUdpEnabled", {"type":"boolean"}],
"deprecated": "Please use privacy.network.webRTCIPHandlingPolicy. This remains for backward compatibility in this release and will be removed in the future.",
"description": "If enabled, Chrome is allowed to use non-proxied UDP to connect to peers or TURN servers when using WebRTC. Since most proxy servers don't handle UDP, using UDP possibly exposes user's IP address. Turning this off effectively forces WebRTC to only use TCP for now, until UDP proxy support is available in Chrome and such proxies are widely deployed. As a result, it also might hurt media performance and increase the load for proxy servers. This preference's value is a boolean, defaulting to <code>true</code>."
},
"webRTCIPHandlingPolicy": { "webRTCIPHandlingPolicy": {
"$ref": "types.ChromeSetting", "$ref": "types.ChromeSetting",
"value": ["webRTCIPHandlingPolicy", {"$ref":"IPHandlingPolicy"}], "value": ["webRTCIPHandlingPolicy", {"$ref":"IPHandlingPolicy"}],
......
...@@ -1544,12 +1544,6 @@ const char kToolbarIconSurfacingBubbleLastShowTime[] = ...@@ -1544,12 +1544,6 @@ const char kToolbarIconSurfacingBubbleLastShowTime[] =
"toolbar_icon_surfacing_bubble_show_time"; "toolbar_icon_surfacing_bubble_show_time";
#endif #endif
// Whether WebRTC should use non-proxied UDP. If false, WebRTC will not send UDP
// unless it goes through a proxy (i.e RETURN when it's available). If no UDP
// proxy is configured, it will not send UDP. If true, WebRTC will send UDP
// regardless of whether or not a proxy is configured. TODO(guoweis): Remove
// this at M50.
const char kWebRTCNonProxiedUdpEnabled[] = "webrtc.nonproxied_udp_enabled";
// Define the IP handling policy override that WebRTC should follow. When not // Define the IP handling policy override that WebRTC should follow. When not
// set, it defaults to "default". // set, it defaults to "default".
const char kWebRTCIPHandlingPolicy[] = "webrtc.ip_handling_policy"; const char kWebRTCIPHandlingPolicy[] = "webrtc.ip_handling_policy";
......
...@@ -15,7 +15,6 @@ var preferences_to_test = [ ...@@ -15,7 +15,6 @@ var preferences_to_test = [
root: chrome.privacy.network, root: chrome.privacy.network,
preferences: { preferences: {
networkPredictionEnabled: false, networkPredictionEnabled: false,
webRTCNonProxiedUdpEnabled: false,
} }
}, },
{ {
...@@ -47,9 +46,7 @@ var preferences_to_test = [ ...@@ -47,9 +46,7 @@ var preferences_to_test = [
// Some preferences are only present on certain platforms or are hidden // Some preferences are only present on certain platforms or are hidden
// behind flags and might not be present when this test runs. // behind flags and might not be present when this test runs.
var possibly_missing_preferences = new Set([ var possibly_missing_preferences = new Set();
'webRTCNonProxiedUdpEnabled', // requires ENABLE_WEBRTC=1
]);
if (!navigator.userAgent.includes('Windows') && if (!navigator.userAgent.includes('Windows') &&
!navigator.userAgent.includes('CrOS')) { !navigator.userAgent.includes('CrOS')) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment