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

Unified Diff: remoting/protocol/ice_connection_to_host.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/ice_connection_to_host.cc
diff --git a/remoting/protocol/ice_connection_to_host.cc b/remoting/protocol/ice_connection_to_host.cc
index 28e494a85437ff17f902e055054dda3dad6dcfc6..c238c76dbc6d6e806af9403ad436022fc4798fde 100644
--- a/remoting/protocol/ice_connection_to_host.cc
+++ b/remoting/protocol/ice_connection_to_host.cc
@@ -33,7 +33,7 @@ void IceConnectionToHost::Connect(scoped_ptr<Session> session,
DCHECK(clipboard_stub_);
DCHECK(monitored_video_stub_);
- session_ = session.Pass();
+ session_ = std::move(session);
session_->SetEventHandler(this);
event_callback_ = event_callback;

Powered by Google App Engine
This is Rietveld 408576698