| 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();
|
| }
|
|
|
|
|