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

Unified Diff: webrtc/pc/peerconnection.cc

Issue 2632203003: Delete deprecated PeerConnection methods, and corresponding using declarations. (Closed)
Patch Set: Rebased. Created 3 years, 9 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.h ('k') | webrtc/pc/peerconnection_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/pc/peerconnection.cc
diff --git a/webrtc/pc/peerconnection.cc b/webrtc/pc/peerconnection.cc
index 3f01d69edffd6cee081e33a7d1613aca2f4af18d..c5d65918d9e0d6cd19418a917c3c7a65d1c19860 100644
--- a/webrtc/pc/peerconnection.cc
+++ b/webrtc/pc/peerconnection.cc
@@ -1363,9 +1363,6 @@ void PeerConnection::SetRemoteDescription(
for (size_t i = 0; i < new_streams->count(); ++i) {
MediaStreamInterface* new_stream = new_streams->at(i);
stats_->AddStream(new_stream);
- // Call both the raw pointer and scoped_refptr versions of the method
- // for compatibility.
- observer_->OnAddStream(new_stream);
observer_->OnAddStream(
rtc::scoped_refptr<MediaStreamInterface>(new_stream));
}
@@ -2080,9 +2077,6 @@ void PeerConnection::UpdateEndedRemoteMediaStreams() {
for (auto& stream : streams_to_remove) {
remote_streams_->RemoveStream(stream);
- // Call both the raw pointer and scoped_refptr versions of the method
- // for compatibility.
- observer_->OnRemoveStream(stream.get());
observer_->OnRemoveStream(std::move(stream));
}
}
@@ -2257,9 +2251,6 @@ void PeerConnection::CreateRemoteRtpDataChannel(const std::string& label,
channel->SetReceiveSsrc(remote_ssrc);
rtc::scoped_refptr<DataChannelInterface> proxy_channel =
DataChannelProxy::Create(signaling_thread(), channel);
- // Call both the raw pointer and scoped_refptr versions of the method
- // for compatibility.
- observer_->OnDataChannel(proxy_channel.get());
observer_->OnDataChannel(std::move(proxy_channel));
}
@@ -2416,9 +2407,6 @@ void PeerConnection::OnDataChannelOpenMessage(
rtc::scoped_refptr<DataChannelInterface> proxy_channel =
DataChannelProxy::Create(signaling_thread(), channel);
- // Call both the raw pointer and scoped_refptr versions of the method
- // for compatibility.
- observer_->OnDataChannel(proxy_channel.get());
observer_->OnDataChannel(std::move(proxy_channel));
}
« no previous file with comments | « webrtc/api/peerconnectioninterface.h ('k') | webrtc/pc/peerconnection_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698