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

Unified Diff: tools/android/forwarder2/host_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 | « tools/android/forwarder2/host_controller.cc ('k') | tools/ipc_fuzzer/message_replay/replay_process.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/forwarder2/host_forwarder_main.cc
diff --git a/tools/android/forwarder2/host_forwarder_main.cc b/tools/android/forwarder2/host_forwarder_main.cc
index 16a7b512990845dd66917a24abf49120cab47aaa..ddb56c09b535b1ca76734ff001ebd5a7b6286798 100644
--- a/tools/android/forwarder2/host_forwarder_main.cc
+++ b/tools/android/forwarder2/host_forwarder_main.cc
@@ -93,7 +93,7 @@ class HostControllersManager {
if (!thread_.get())
return;
// Delete the controllers on the thread they were created on.
- thread_->message_loop_proxy()->DeleteSoon(
+ thread_->task_runner()->DeleteSoon(
FROM_HERE, controllers_.release());
}
@@ -104,7 +104,7 @@ class HostControllersManager {
scoped_ptr<Socket> client_socket) {
// Lazy initialize so that the CLI process doesn't get this thread created.
InitOnce();
- thread_->message_loop_proxy()->PostTask(
+ thread_->task_runner()->PostTask(
FROM_HERE,
base::Bind(&HostControllersManager::HandleRequestOnInternalThread,
base::Unretained(this), adb_path, device_serial, device_port,
@@ -143,7 +143,7 @@ class HostControllersManager {
// then all the controllers (including |controller|) were also deleted.
return;
}
- DCHECK(manager->thread_->message_loop_proxy()->RunsTasksOnCurrentThread());
+ DCHECK(manager->thread_->task_runner()->RunsTasksOnCurrentThread());
// Note that this will delete |controller| which is owned by the map.
DeleteRefCountedValueInMap(
MakeHostControllerMapKey(
« no previous file with comments | « tools/android/forwarder2/host_controller.cc ('k') | tools/ipc_fuzzer/message_replay/replay_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698