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 59413582383825b38a163a688f0f7c2c11ac4ed5..b361469e9af0b27ef161e7bf4ee474552b8e5d39 100644 |
--- a/content/renderer/media/rtc_peer_connection_handler.cc |
+++ b/content/renderer/media/rtc_peer_connection_handler.cc |
@@ -349,12 +349,10 @@ bool RTCPeerConnectionHandler::initialize( |
RTCMediaConstraints constraints(options); |
- if (CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kEnableSCTPDataChannels)) { |
- // TODO(jiayl): replace the hard coded string with |
- // webrtc::MediaConstraintsInterface::kEnableSctpDataChannels when |
- // the Libjingle change is rolled. |
- constraints.AddOptional("internalSctpDataChannels", "true"); |
+ if (!CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kDisableSCTPDataChannels)) { |
+ constraints.AddOptional( |
+ webrtc::MediaConstraintsInterface::kEnableSctpDataChannels, "true"); |
} |
native_peer_connection_ = |