Index: media/cast/test/utility/udp_proxy.cc |
diff --git a/media/cast/test/utility/udp_proxy.cc b/media/cast/test/utility/udp_proxy.cc |
index 5c41dbeae97df82dde430c39b18f357c9113c00c..eb3817192603fe67f27aaed5bb1cdf02362ac04c 100644 |
--- a/media/cast/test/utility/udp_proxy.cc |
+++ b/media/cast/test/utility/udp_proxy.cc |
@@ -10,7 +10,9 @@ |
#include "base/logging.h" |
#include "base/rand_util.h" |
+#include "base/single_thread_task_runner.h" |
#include "base/synchronization/waitable_event.h" |
+#include "base/thread_task_runner_handle.h" |
#include "base/threading/thread.h" |
#include "base/time/default_tick_clock.h" |
#include "net/base/io_buffer.h" |
@@ -741,9 +743,9 @@ class UDPProxyImpl : public UDPProxy { |
socket_.reset(new net::UDPServerSocket(net_log, net::NetLog::Source())); |
BuildPipe(&to_dest_pipe_, new PacketSender(this, &destination_)); |
BuildPipe(&from_dest_pipe_, new PacketSender(this, &return_address_)); |
- to_dest_pipe_->InitOnIOThread(base::MessageLoopProxy::current(), |
+ to_dest_pipe_->InitOnIOThread(base::ThreadTaskRunnerHandle::Get(), |
&tick_clock_); |
- from_dest_pipe_->InitOnIOThread(base::MessageLoopProxy::current(), |
+ from_dest_pipe_->InitOnIOThread(base::ThreadTaskRunnerHandle::Get(), |
&tick_clock_); |
VLOG(0) << "From:" << local_port_.ToString(); |