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

Unified Diff: tools/android/forwarder2/device_forwarder_main.cc

Issue 1179163002: Migrate callers of message_loop_proxy() to task_runner() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. 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 | « sync/util/get_session_name_unittest.cc ('k') | tools/android/forwarder2/device_listener.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/forwarder2/device_forwarder_main.cc
diff --git a/tools/android/forwarder2/device_forwarder_main.cc b/tools/android/forwarder2/device_forwarder_main.cc
index 8b5df26ccb55249b2bfc6045689441e0eea4eaec..fdf5fe54a54a0a8fd9453cdb6af0e349ab91ebbe 100644
--- a/tools/android/forwarder2/device_forwarder_main.cc
+++ b/tools/android/forwarder2/device_forwarder_main.cc
@@ -55,7 +55,7 @@ class ServerDelegate : public Daemon::ServerDelegate {
// thread. Make sure that it gets deleted on that same thread. Note that
// DeleteSoon() is not used here since it would imply reading |controller_|
// from the main thread while it's set on the internal thread.
- controller_thread_->message_loop_proxy()->PostTask(
+ controller_thread_->task_runner()->PostTask(
FROM_HERE,
base::Bind(&ServerDelegate::DeleteControllerOnInternalThread,
base::Unretained(this)));
@@ -63,7 +63,7 @@ class ServerDelegate : public Daemon::ServerDelegate {
void DeleteControllerOnInternalThread() {
DCHECK(
- controller_thread_->message_loop_proxy()->RunsTasksOnCurrentThread());
+ controller_thread_->task_runner()->RunsTasksOnCurrentThread());
controller_.reset();
}
« no previous file with comments | « sync/util/get_session_name_unittest.cc ('k') | tools/android/forwarder2/device_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698