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

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: 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/video_frame_recorder_unittest.cc ('k') | remoting/host/win/security_descriptor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 27689ad52b0fb5f37b603db250661ae1fba0ff89..a274b334e2f44e0e21e7b0326b887532cbf87b48 100644
--- a/remoting/host/win/launch_process_with_token.cc
+++ b/remoting/host/win/launch_process_with_token.cc
@@ -9,6 +9,7 @@
#include <winternl.h>
#include <limits>
+#include <utility>
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
@@ -117,7 +118,7 @@ bool ConnectToExecutionServer(uint32_t session_id,
return false;
}
- *pipe_out = pipe.Pass();
+ *pipe_out = std::move(pipe);
return true;
}
@@ -172,7 +173,7 @@ bool CreatePrivilegedToken(ScopedHandle* token_out) {
return false;
}
- *token_out = privileged_token.Pass();
+ *token_out = std::move(privileged_token);
return true;
}
@@ -444,7 +445,7 @@ bool CreateSessionToken(uint32_t 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;
}
« no previous file with comments | « remoting/host/video_frame_recorder_unittest.cc ('k') | remoting/host/win/security_descriptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698