diff options
Diffstat (limited to 'media/base/bind_to_current_loop.h')
-rw-r--r-- | media/base/bind_to_current_loop.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/media/base/bind_to_current_loop.h b/media/base/bind_to_current_loop.h index cb3e28d..c9eda2ac 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 |