Index: chrome/common/worker_thread_ticker.cc |
diff --git a/chrome/common/worker_thread_ticker.cc b/chrome/common/worker_thread_ticker.cc |
index 1fa75e9f7daa1c191129aedee38c9803176ba7a1..8b78d9798387834db9adb976fd681804a6ec14d5 100644 |
--- a/chrome/common/worker_thread_ticker.cc |
+++ b/chrome/common/worker_thread_ticker.cc |
@@ -8,8 +8,9 @@ |
#include "base/bind.h" |
#include "base/bind_helpers.h" |
+#include "base/location.h" |
#include "base/logging.h" |
-#include "base/message_loop/message_loop.h" |
+#include "base/single_thread_task_runner.h" |
#include "base/threading/thread.h" |
WorkerThreadTicker::WorkerThreadTicker(int tick_interval) |
@@ -76,7 +77,7 @@ bool WorkerThreadTicker::Stop() { |
} |
void WorkerThreadTicker::ScheduleTimerTask() { |
- timer_thread_.message_loop()->PostDelayedTask( |
+ timer_thread_.task_runner()->PostDelayedTask( |
FROM_HERE, |
base::Bind(&WorkerThreadTicker::TimerTask, base::Unretained(this)), |
tick_interval_); |