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

Unified Diff: content/shell/browser/shell.cc

Issue 1413393003: Change WebRTC IP handling policy from multiple booleans to an enum. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: content/shell/browser/shell.cc
diff --git a/content/shell/browser/shell.cc b/content/shell/browser/shell.cc
index 7d8ac38b6fa412982bba407b0f90db131f9f5356..5bdce8c0d95ed9a7c80144b804df27840498979a 100644
--- a/content/shell/browser/shell.cc
+++ b/content/shell/browser/shell.cc
@@ -22,6 +22,7 @@
#include "content/public/browser/web_contents_observer.h"
#include "content/public/common/content_switches.h"
#include "content/public/common/renderer_preferences.h"
+#include "content/public/renderer/webrtc_ip_handling_policy.h"
#include "content/shell/browser/blink_test_controller.h"
#include "content/shell/browser/layout_test/layout_test_bluetooth_chooser_factory.h"
#include "content/shell/browser/layout_test/layout_test_devtools_frontend.h"
@@ -120,8 +121,8 @@ Shell* Shell::CreateShell(WebContents* web_contents,
#if defined(ENABLE_WEBRTC)
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableWebRtcMultipleRoutes)) {
- web_contents->GetMutableRendererPrefs()->enable_webrtc_multiple_routes =
- false;
+ web_contents->GetMutableRendererPrefs()->webrtc_ip_handling_policy =
+ content::kWebRTCIPHandlingDefaultPublicInterfaceOnly;
}
#endif

Powered by Google App Engine
This is Rietveld 408576698