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

Unified Diff: sandbox/win/src/target_process.cc

Issue 1752233002: Convert Pass()→std::move() on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 10 months 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: sandbox/win/src/target_process.cc
diff --git a/sandbox/win/src/target_process.cc b/sandbox/win/src/target_process.cc
index e27655e7ecfb4b10c77f3c8ac968fc8c428a532e..d8ff0a14e35043af61a867a1e87d9fd67b18a59c 100644
--- a/sandbox/win/src/target_process.cc
+++ b/sandbox/win/src/target_process.cc
@@ -6,6 +6,7 @@
#include <stddef.h>
#include <stdint.h>
+#include <utility>
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
@@ -75,9 +76,9 @@ TargetProcess::TargetProcess(base::win::ScopedHandle initial_token,
// This object owns everything initialized here except thread_pool and
// the job_ handle. The Job handle is closed by BrokerServices and results
// eventually in a call to our dtor.
- : lockdown_token_(lockdown_token.Pass()),
- initial_token_(initial_token.Pass()),
- lowbox_token_(lowbox_token.Pass()),
+ : lockdown_token_(std::move(lockdown_token)),
+ initial_token_(std::move(initial_token)),
+ lowbox_token_(std::move(lowbox_token)),
job_(job),
thread_pool_(thread_pool),
base_address_(NULL) {}
« no previous file with comments | « sandbox/win/src/restricted_token.cc ('k') | ui/base/ime/chromeos/component_extension_ime_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698