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

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

Issue 24042002: Changing the --enable-sctp-data-channels flag to --disable-sctp-data-channels so that SCTP is turned (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 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
« no previous file with comments | « content/public/common/content_switches.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_ =
« no previous file with comments | « content/public/common/content_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698