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

Unified Diff: sandbox/win/src/job.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
« no previous file with comments | « sandbox/win/src/broker_services.cc ('k') | sandbox/win/src/restricted_token.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/src/job.cc
diff --git a/sandbox/win/src/job.cc b/sandbox/win/src/job.cc
index adf392ddd437903bc489be63ef8a444bcbde8100..63e66102c032e282ce73e7da467d1d9e98ac8f2b 100644
--- a/sandbox/win/src/job.cc
+++ b/sandbox/win/src/job.cc
@@ -5,6 +5,7 @@
#include "sandbox/win/src/job.h"
#include <stddef.h>
+#include <utility>
#include "base/win/windows_version.h"
#include "sandbox/win/src/restricted_token.h"
@@ -103,7 +104,7 @@ DWORD Job::UserHandleGrantAccess(HANDLE handle) {
}
base::win::ScopedHandle Job::Take() {
- return job_handle_.Pass();
+ return std::move(job_handle_);
}
DWORD Job::AssignProcessToJob(HANDLE process_handle) {
« no previous file with comments | « sandbox/win/src/broker_services.cc ('k') | sandbox/win/src/restricted_token.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698