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 33bb7c4a45fe422e262ed3bdd8aa55bfd8df9095..1a72b4f289c84337e8a81dd06a65042c41e8450e 100644 |
--- a/content/renderer/media/rtc_peer_connection_handler.cc |
+++ b/content/renderer/media/rtc_peer_connection_handler.cc |
@@ -179,7 +179,7 @@ bool RTCPeerConnectionHandler::initialize( |
native_peer_connection_ = |
dependency_factory_->CreatePeerConnection( |
servers, &constraints, frame_, this); |
- if (!native_peer_connection_) { |
+ if (!native_peer_connection_.get()) { |
LOG(ERROR) << "Failed to initialize native PeerConnection."; |
return false; |
} |
@@ -196,7 +196,7 @@ bool RTCPeerConnectionHandler::InitializeForTest( |
native_peer_connection_ = |
dependency_factory_->CreatePeerConnection( |
servers, &constraints, NULL, this); |
- if (!native_peer_connection_) { |
+ if (!native_peer_connection_.get()) { |
LOG(ERROR) << "Failed to initialize native PeerConnection."; |
return false; |
} |
@@ -210,7 +210,7 @@ void RTCPeerConnectionHandler::createOffer( |
new talk_base::RefCountedObject<CreateSessionDescriptionRequest>( |
request)); |
RTCMediaConstraints constraints(options); |
- native_peer_connection_->CreateOffer(description_request, &constraints); |
+ native_peer_connection_->CreateOffer(description_request.get(), &constraints); |
} |
void RTCPeerConnectionHandler::createAnswer( |
@@ -220,7 +220,8 @@ void RTCPeerConnectionHandler::createAnswer( |
new talk_base::RefCountedObject<CreateSessionDescriptionRequest>( |
request)); |
RTCMediaConstraints constraints(options); |
- native_peer_connection_->CreateAnswer(description_request, &constraints); |
+ native_peer_connection_-> |
+ CreateAnswer(description_request.get(), &constraints); |
} |
void RTCPeerConnectionHandler::setLocalDescription( |
@@ -237,7 +238,7 @@ void RTCPeerConnectionHandler::setLocalDescription( |
} |
scoped_refptr<SetSessionDescriptionRequest> set_request( |
new talk_base::RefCountedObject<SetSessionDescriptionRequest>(request)); |
- native_peer_connection_->SetLocalDescription(set_request, native_desc); |
+ native_peer_connection_->SetLocalDescription(set_request.get(), native_desc); |
} |
void RTCPeerConnectionHandler::setRemoteDescription( |
@@ -254,7 +255,7 @@ void RTCPeerConnectionHandler::setRemoteDescription( |
} |
scoped_refptr<SetSessionDescriptionRequest> set_request( |
new talk_base::RefCountedObject<SetSessionDescriptionRequest>(request)); |
- native_peer_connection_->SetRemoteDescription(set_request, native_desc); |
+ native_peer_connection_->SetRemoteDescription(set_request.get(), native_desc); |
} |
WebKit::WebRTCSessionDescription |