| 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;
|
| }
|
|
|
|
|