Index: media/cast/test/utility/tap_proxy.cc |
diff --git a/media/cast/test/utility/tap_proxy.cc b/media/cast/test/utility/tap_proxy.cc |
index fa3e1b62136670461e669e53219ec99a8b1adae1..ad7057ab530ad7ce1b9ac41424b8b2c8d1ec9280 100644 |
--- a/media/cast/test/utility/tap_proxy.cc |
+++ b/media/cast/test/utility/tap_proxy.cc |
@@ -23,7 +23,9 @@ |
#include "base/command_line.h" |
#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 "media/cast/test/utility/udp_proxy.h" |
@@ -81,7 +83,7 @@ class QueueManager : public base::MessageLoopForIO::Watcher { |
} else { |
packet_pipe_ = tmp.Pass(); |
} |
- packet_pipe_->InitOnIOThread(base::MessageLoopProxy::current(), |
+ packet_pipe_->InitOnIOThread(base::ThreadTaskRunnerHandle::Get(), |
&tick_clock_); |
} |
@@ -209,7 +211,7 @@ void CheckByteCounters() { |
last_printout = now; |
} |
- base::MessageLoopProxy::current()->PostDelayedTask( |
+ base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( |
FROM_HERE, |
base::Bind(&CheckByteCounters), |
base::TimeDelta::FromMilliseconds(100)); |