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

Unified Diff: content/renderer/media/rtc_peer_connection_handler.cc

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 2 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
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
« no previous file with comments | « content/renderer/media/peer_connection_handler_jsep_unittest.cc ('k') | content/renderer/media/rtc_video_capture_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698