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

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: include <utility> 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
« no previous file with comments | « remoting/host/gcd_state_updater_unittest.cc ('k') | remoting/host/gnubby_socket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a3d67dbafba8a02a66c316bf5c0baf4f39780ad8..5592b3a95ffbcad55c96dadc8aeb8ebd56c4c74b 100644
--- a/remoting/host/gnubby_auth_handler_posix.cc
+++ b/remoting/host/gnubby_auth_handler_posix.cc
@@ -210,7 +210,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;
« no previous file with comments | « remoting/host/gcd_state_updater_unittest.cc ('k') | remoting/host/gnubby_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698