| Index: net/test/spawned_test_server/spawner_communicator.cc
|
| diff --git a/net/test/spawned_test_server/spawner_communicator.cc b/net/test/spawned_test_server/spawner_communicator.cc
|
| index 05865d94efc50a2afb906e20a51c46468dd0ab4e..952b85c74bf76cf4096fe88d2bd31cc0a6bf7e6e 100644
|
| --- a/net/test/spawned_test_server/spawner_communicator.cc
|
| +++ b/net/test/spawned_test_server/spawner_communicator.cc
|
| @@ -162,9 +162,11 @@ void SpawnerCommunicator::SendCommandAndWaitForResult(
|
| // Since the method will be blocked until SpawnerCommunicator gets result
|
| // from the spawner server or timed-out. It's safe to use base::Unretained
|
| // when using base::Bind.
|
| - io_thread_.message_loop()->PostTask(FROM_HERE, base::Bind(
|
| - &SpawnerCommunicator::SendCommandAndWaitForResultOnIOThread,
|
| - base::Unretained(this), command, post_data, result_code, data_received));
|
| + io_thread_.task_runner()->PostTask(
|
| + FROM_HERE,
|
| + base::Bind(&SpawnerCommunicator::SendCommandAndWaitForResultOnIOThread,
|
| + base::Unretained(this), command, post_data, result_code,
|
| + data_received));
|
| WaitForResponse();
|
| }
|
|
|
|
|