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

Unified Diff: webrtc/api/rtcstatscollector.cc

Issue 2614813003: Revert of Separating SCTP code from BaseChannel/MediaChannel. (Closed)
Patch Set: Also reverting https://codereview.webrtc.org/2612963002 Created 3 years, 11 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 | « webrtc/api/peerconnectioninterface_unittest.cc ('k') | webrtc/api/test/mock_webrtcsession.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/rtcstatscollector.cc
diff --git a/webrtc/api/rtcstatscollector.cc b/webrtc/api/rtcstatscollector.cc
index dc14970854f0e8ffa10894f019cedfd25d5e7448..3ab7ac94e1e12429a423d05d7180da4f84fdbef3 100644
--- a/webrtc/api/rtcstatscollector.cc
+++ b/webrtc/api/rtcstatscollector.cc
@@ -463,16 +463,10 @@ void RTCStatsCollector::GetStatsReport(
ChannelNamePair(pc_->session()->video_channel()->content_name(),
pc_->session()->video_channel()->transport_name()));
}
- if (pc_->session()->rtp_data_channel()) {
- channel_name_pairs_->data =
- rtc::Optional<ChannelNamePair>(ChannelNamePair(
- pc_->session()->rtp_data_channel()->content_name(),
- pc_->session()->rtp_data_channel()->transport_name()));
- }
- if (pc_->session()->sctp_content_name()) {
+ if (pc_->session()->data_channel()) {
channel_name_pairs_->data = rtc::Optional<ChannelNamePair>(
- ChannelNamePair(*pc_->session()->sctp_content_name(),
- *pc_->session()->sctp_transport_name()));
+ ChannelNamePair(pc_->session()->data_channel()->content_name(),
+ pc_->session()->data_channel()->transport_name()));
}
media_info_.reset(PrepareMediaInfo_s().release());
« no previous file with comments | « webrtc/api/peerconnectioninterface_unittest.cc ('k') | webrtc/api/test/mock_webrtcsession.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698