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

Unified Diff: content/renderer/media/rtc_peer_connection_handler.cc

Issue 37253002: Add command line flag --disable-webrtc-encryption for dev and canary channels (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't allow flag for unknown channel + rebase. Created 7 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/renderer/media/rtc_peer_connection_handler.cc
diff --git a/content/renderer/media/rtc_peer_connection_handler.cc b/content/renderer/media/rtc_peer_connection_handler.cc
index 127a7e23fcd5fed93bd5cd41ef317dd6e8c643b7..69b1eddf2f0c1875a505f1d41e09b85a2ec072f2 100644
--- a/content/renderer/media/rtc_peer_connection_handler.cc
+++ b/content/renderer/media/rtc_peer_connection_handler.cc
@@ -357,6 +357,12 @@ bool RTCPeerConnectionHandler::initialize(
webrtc::MediaConstraintsInterface::kEnableSctpDataChannels, "true");
}
+ if (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableWebRtcEncryption)) {
+ constraints.AddOptional(
+ webrtc::MediaConstraintsInterface::kInternalDisableEncryption, "true");
+ }
+
native_peer_connection_ =
dependency_factory_->CreatePeerConnection(
servers, &constraints, frame_, this);
« content/public/common/content_switches.cc ('K') | « content/public/common/content_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698