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

Unified Diff: talk/examples/peerconnection/client/conductor.cc

Issue 1237613003: Remove deprecated functions. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Use nullptr instead of NULL. Created 5 years, 5 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 | « talk/app/webrtc/webrtcsession_unittest.cc ('k') | talk/media/base/streamparams.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: talk/examples/peerconnection/client/conductor.cc
diff --git a/talk/examples/peerconnection/client/conductor.cc b/talk/examples/peerconnection/client/conductor.cc
index f30516fc74bb3a6799799412313198bb91fbbfb3..2ffda1519dcbbbc5ac7e8a953dbea9a6c4bbdf6f 100644
--- a/talk/examples/peerconnection/client/conductor.cc
+++ b/talk/examples/peerconnection/client/conductor.cc
@@ -303,7 +303,7 @@ void Conductor::OnMessageFromPeer(int peer_id, const std::string& message) {
return;
}
webrtc::SessionDescriptionInterface* session_description(
- webrtc::CreateSessionDescription(type, sdp));
+ webrtc::CreateSessionDescription(type, sdp, nullptr));
pthatcher1 2015/07/16 04:41:31 Can you introduce a local variable to give the val
joachim 2015/07/16 08:12:00 Done, also changed to log the error description.
if (!session_description) {
LOG(WARNING) << "Can't parse received session description message.";
return;
@@ -329,7 +329,7 @@ void Conductor::OnMessageFromPeer(int peer_id, const std::string& message) {
return;
}
rtc::scoped_ptr<webrtc::IceCandidateInterface> candidate(
- webrtc::CreateIceCandidate(sdp_mid, sdp_mlineindex, sdp));
+ webrtc::CreateIceCandidate(sdp_mid, sdp_mlineindex, sdp, nullptr));
if (!candidate.get()) {
LOG(WARNING) << "Can't parse received candidate message.";
return;
@@ -536,7 +536,7 @@ void Conductor::OnSuccess(webrtc::SessionDescriptionInterface* desc) {
if (loopback_) {
// Replace message type from "offer" to "answer"
webrtc::SessionDescriptionInterface* session_description(
- webrtc::CreateSessionDescription("answer", sdp));
+ webrtc::CreateSessionDescription("answer", sdp, nullptr));
peer_connection_->SetRemoteDescription(
DummySetSessionDescriptionObserver::Create(), session_description);
return;
« no previous file with comments | « talk/app/webrtc/webrtcsession_unittest.cc ('k') | talk/media/base/streamparams.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698