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); |