Index: components/browser_watcher/window_hang_monitor_win.cc |
diff --git a/components/browser_watcher/window_hang_monitor_win.cc b/components/browser_watcher/window_hang_monitor_win.cc |
index e3966f8c5000333b9079415e4922fe6ca4078772..96cadb62ca3bb68b51e49b916dc8ffabccffee3c 100644 |
--- a/components/browser_watcher/window_hang_monitor_win.cc |
+++ b/components/browser_watcher/window_hang_monitor_win.cc |
@@ -9,9 +9,9 @@ |
#include "base/files/file_util.h" |
#include "base/location.h" |
#include "base/logging.h" |
-#include "base/message_loop/message_loop.h" |
#include "base/strings/string_piece.h" |
#include "base/strings/string_util.h" |
+#include "base/threading/thread_task_runner_handle.h" |
#include "base/win/message_window.h" |
namespace browser_watcher { |
@@ -75,7 +75,7 @@ WindowHangMonitor::~WindowHangMonitor() { |
void WindowHangMonitor::Initialize(base::Process process) { |
window_process_ = std::move(process); |
- timer_.SetTaskRunner(base::MessageLoop::current()->task_runner()); |
+ timer_.SetTaskRunner(base::ThreadTaskRunnerHandle::Get()); |
ScheduleFindWindow(); |
} |