Index: media/base/bind_to_current_loop.h |
diff --git a/media/base/bind_to_current_loop.h b/media/base/bind_to_current_loop.h |
index cb3e28d4839641f3745684fc7757f87c3aa4cba9..c9eda2ac3f8e50c2fb3f0172c6b6baa1349047ae 100644 |
--- a/media/base/bind_to_current_loop.h |
+++ b/media/base/bind_to_current_loop.h |
@@ -9,6 +9,7 @@ |
#include "base/location.h" |
#include "base/message_loop/message_loop_proxy.h" |
#include "base/single_thread_task_runner.h" |
+#include "base/thread_task_runner_handle.h" |
// This is a helper utility for base::Bind()ing callbacks to the current |
// MessageLoop. The typical use is when |a| (of class |A|) wants to hand a |
@@ -61,7 +62,7 @@ template<typename T> |
static base::Callback<T> BindToCurrentLoop( |
const base::Callback<T>& cb) { |
return base::Bind(&internal::TrampolineHelper<T>::Run, |
- base::MessageLoopProxy::current(), cb); |
+ base::ThreadTaskRunnerHandle::Get(), cb); |
} |
} // namespace media |