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

Unified Diff: remoting/host/win/launch_process_with_token.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/win/launch_process_with_token.cc
diff --git a/remoting/host/win/launch_process_with_token.cc b/remoting/host/win/launch_process_with_token.cc
index c0ee4b89e5f73fd6aa86410eb9bccae7f576b565..d851e13d8227ade09b7fd86047e78f67784d8efe 100644
--- a/remoting/host/win/launch_process_with_token.cc
+++ b/remoting/host/win/launch_process_with_token.cc
@@ -116,7 +116,7 @@ bool ConnectToExecutionServer(uint32 session_id,
return false;
}
- *pipe_out = pipe.Pass();
+ *pipe_out = std::move(pipe);
return true;
}
@@ -171,7 +171,7 @@ bool CreatePrivilegedToken(ScopedHandle* token_out) {
return false;
}
- *token_out = privileged_token.Pass();
+ *token_out = std::move(privileged_token);
return true;
}
@@ -443,7 +443,7 @@ bool CreateSessionToken(uint32 session_id, ScopedHandle* token_out) {
// Revert to the default token.
CHECK(RevertToSelf());
- *token_out = session_token.Pass();
+ *token_out = std::move(session_token);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698