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

Unified Diff: chrome/common/worker_thread_ticker.cc

Issue 1167163002: chrome: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added some missing message_loop.h includes. Created 5 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 | « chrome/common/service_process_util_win.cc ('k') | chrome/common/worker_thread_ticker_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_);
« no previous file with comments | « chrome/common/service_process_util_win.cc ('k') | chrome/common/worker_thread_ticker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698