From 83e140c4f6c76c773f4233ed80d1cb974fda95c5 Mon Sep 17 00:00:00 2001 From: csagan5 <32685696+csagan5@users.noreply.github.com> Date: Thu, 26 Oct 2017 17:01:12 +0200 Subject: [PATCH] Add patch to disable WebRTC --- patches/disable-webrtc.patch | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 patches/disable-webrtc.patch diff --git a/patches/disable-webrtc.patch b/patches/disable-webrtc.patch new file mode 100644 index 00000000..bb027d7d --- /dev/null +++ b/patches/disable-webrtc.patch @@ -0,0 +1,24 @@ +commit aff93733a4c414f9182103b7384c23e6fa450a6a +Author: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Thu Oct 26 16:59:03 2017 +0200 + + Disable WebRTC by default + +diff --git a/chrome/browser/ui/browser_ui_prefs.cc b/chrome/browser/ui/browser_ui_prefs.cc +index 946f7cd..96b79b1 100644 +--- a/chrome/browser/ui/browser_ui_prefs.cc ++++ b/chrome/browser/ui/browser_ui_prefs.cc +@@ -81,10 +81,10 @@ void RegisterBrowserUserPrefs(user_prefs::PrefRegistrySyncable* registry) { + #endif + #if BUILDFLAG(ENABLE_WEBRTC) + // TODO(guoweis): Remove next 2 options at M50. +- registry->RegisterBooleanPref(prefs::kWebRTCMultipleRoutesEnabled, true); +- registry->RegisterBooleanPref(prefs::kWebRTCNonProxiedUdpEnabled, true); ++ registry->RegisterBooleanPref(prefs::kWebRTCMultipleRoutesEnabled, false); ++ registry->RegisterBooleanPref(prefs::kWebRTCNonProxiedUdpEnabled, false); + registry->RegisterStringPref(prefs::kWebRTCIPHandlingPolicy, +- content::kWebRTCIPHandlingDefault); ++ content::kWebRTCIPHandlingDisableNonProxiedUdp); + registry->RegisterStringPref(prefs::kWebRTCUDPPortRange, std::string()); + #endif +