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

Unified Diff: remoting/host/gnubby_auth_handler_posix.cc

Issue 1549493004: Use std::move() instead of .Pass() in remoting/host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_not_pass
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/host/gnubby_auth_handler_posix.cc
diff --git a/remoting/host/gnubby_auth_handler_posix.cc b/remoting/host/gnubby_auth_handler_posix.cc
index 285fd847c5ec614c4a57905d16bc04d7d3a17b7e..23d0aac82e34ac73e16414060e30372911b69f70 100644
--- a/remoting/host/gnubby_auth_handler_posix.cc
+++ b/remoting/host/gnubby_auth_handler_posix.cc
@@ -209,7 +209,7 @@ void GnubbyAuthHandlerPosix::OnAccepted(int result) {
int connection_id = ++last_connection_id_;
GnubbySocket* socket =
- new GnubbySocket(accept_socket_.Pass(), request_timeout_,
+ new GnubbySocket(std::move(accept_socket_), request_timeout_,
base::Bind(&GnubbyAuthHandlerPosix::RequestTimedOut,
base::Unretained(this), connection_id));
active_sockets_[connection_id] = socket;

Powered by Google App Engine
This is Rietveld 408576698