| 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..30da954ba7a434e11fba4bc92eb14ef8508db917 100644
|
| --- a/tools/android/forwarder2/device_forwarder_main.cc
|
| +++ b/tools/android/forwarder2/device_forwarder_main.cc
|
| @@ -55,15 +55,13 @@ 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(
|
| - FROM_HERE,
|
| - base::Bind(&ServerDelegate::DeleteControllerOnInternalThread,
|
| - base::Unretained(this)));
|
| + controller_thread_->task_runner()->PostTask(
|
| + FROM_HERE, base::Bind(&ServerDelegate::DeleteControllerOnInternalThread,
|
| + base::Unretained(this)));
|
| }
|
|
|
| void DeleteControllerOnInternalThread() {
|
| - DCHECK(
|
| - controller_thread_->message_loop_proxy()->RunsTasksOnCurrentThread());
|
| + DCHECK(controller_thread_->task_runner()->RunsTasksOnCurrentThread());
|
| controller_.reset();
|
| }
|
|
|
|
|