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

Unified Diff: base/process/kill_win.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 | « base/move.h ('k') | base/process/process_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process/kill_win.cc
diff --git a/base/process/kill_win.cc b/base/process/kill_win.cc
index a9c04fbce6273f0360d00e33ae95008dca716de8..0f60a291a07e27e22ce51402f8cfb177a81de62a 100644
--- a/base/process/kill_win.cc
+++ b/base/process/kill_win.cc
@@ -8,6 +8,8 @@
#include <io.h>
#include <stdint.h>
+#include <utility>
+
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/logging.h"
@@ -58,7 +60,8 @@ class TimerExpiredTask : public win::ObjectWatcher::Delegate {
DISALLOW_COPY_AND_ASSIGN(TimerExpiredTask);
};
-TimerExpiredTask::TimerExpiredTask(Process process) : process_(process.Pass()) {
+TimerExpiredTask::TimerExpiredTask(Process process)
+ : process_(std::move(process)) {
watcher_.StartWatchingOnce(process_.Handle(), this);
}
@@ -191,9 +194,8 @@ void EnsureProcessTerminated(Process process) {
}
MessageLoop::current()->PostDelayedTask(
- FROM_HERE,
- Bind(&TimerExpiredTask::TimedOut,
- Owned(new TimerExpiredTask(process.Pass()))),
+ FROM_HERE, Bind(&TimerExpiredTask::TimedOut,
+ Owned(new TimerExpiredTask(std::move(process)))),
TimeDelta::FromMilliseconds(kWaitInterval));
}
« no previous file with comments | « base/move.h ('k') | base/process/process_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698