Index: webrtc/api/peerconnection.cc |
diff --git a/webrtc/api/peerconnection.cc b/webrtc/api/peerconnection.cc |
index bdd33d7d371003d15197f10579413fb253421263..144b1c64b55862b066f595e3737d89a43a251d05 100644 |
--- a/webrtc/api/peerconnection.cc |
+++ b/webrtc/api/peerconnection.cc |
@@ -632,6 +632,7 @@ bool PeerConnection::Initialize( |
configuration.redetermine_role_on_ice_restart)))); |
stats_.reset(new StatsCollector(this)); |
+ stats_collector_ = RTCStatsCollector::Create(this); |
enable_ice_renomination_ = configuration.enable_ice_renomination; |
@@ -888,6 +889,11 @@ bool PeerConnection::GetStats(StatsObserver* observer, |
return true; |
} |
+void PeerConnection::GetStats(RTCStatsCollectorCallback* callback) { |
+ RTC_DCHECK(stats_collector_); |
+ stats_collector_->GetStatsReport(callback); |
+} |
+ |
PeerConnectionInterface::SignalingState PeerConnection::signaling_state() { |
return signaling_state_; |
} |