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

Unified Diff: remoting/protocol/webrtc_connection_to_client.cc

Issue 1534193004: Use std::move() instead of scoped_ptr<>::Pass(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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: remoting/protocol/webrtc_connection_to_client.cc
diff --git a/remoting/protocol/webrtc_connection_to_client.cc b/remoting/protocol/webrtc_connection_to_client.cc
index 2b34482feb919403dddf211dd9008a39ec250ee4..628054e3b01632050ec6a4563ca760ae80799835 100644
--- a/remoting/protocol/webrtc_connection_to_client.cc
+++ b/remoting/protocol/webrtc_connection_to_client.cc
@@ -74,7 +74,7 @@ scoped_ptr<VideoStream> WebrtcConnectionToClient::StartVideoStream(
CHECK(transport);
scoped_ptr<WebrtcVideoCapturerAdapter> video_capturer_adapter(
- new WebrtcVideoCapturerAdapter(desktop_capturer.Pass()));
+ new WebrtcVideoCapturerAdapter(std::move(desktop_capturer)));
// Set video stream constraints.
webrtc::FakeConstraints video_constraints;
@@ -96,9 +96,8 @@ scoped_ptr<VideoStream> WebrtcConnectionToClient::StartVideoStream(
return nullptr;
}
- scoped_ptr<VideoStream> result(
+ return make_scoped_ptr(
new WebrtcVideoStream(transport->peer_connection(), video_stream));
- return result.Pass();
}
AudioStub* WebrtcConnectionToClient::audio_stub() {

Powered by Google App Engine
This is Rietveld 408576698