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

Unified Diff: base/process/kill_win.cc

Issue 2061903002: Use ThreadTaskRunnerHandle instead of MessageLoop::current() in base/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR danakj Created 4 years, 6 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 | « no previous file | base/timer/timer_unittest.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 0f60a291a07e27e22ce51402f8cfb177a81de62a..358590e7a38cdef119d0f4cc7e7c120811c636c0 100644
--- a/base/process/kill_win.cc
+++ b/base/process/kill_win.cc
@@ -14,8 +14,8 @@
#include "base/bind_helpers.h"
#include "base/logging.h"
#include "base/macros.h"
-#include "base/message_loop/message_loop.h"
#include "base/process/process_iterator.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "base/win/object_watcher.h"
namespace base {
@@ -46,7 +46,7 @@ class TimerExpiredTask : public win::ObjectWatcher::Delegate {
void TimedOut();
- // MessageLoop::Watcher -----------------------------------------------------
+ // win::ObjectWatcher::Delegate implementation.
void OnObjectSignaled(HANDLE object) override;
private:
@@ -193,7 +193,7 @@ void EnsureProcessTerminated(Process process) {
return;
}
- MessageLoop::current()->PostDelayedTask(
+ ThreadTaskRunnerHandle::Get()->PostDelayedTask(
FROM_HERE, Bind(&TimerExpiredTask::TimedOut,
Owned(new TimerExpiredTask(std::move(process)))),
TimeDelta::FromMilliseconds(kWaitInterval));
« no previous file with comments | « no previous file | base/timer/timer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698