diff options
author | anujk.sharma <anujk.sharma@samsung.com> | 2015-04-29 22:51:32 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-30 05:52:07 +0000 |
commit | 2fa37a05b45e8d50d3929546427106b1d4df21a9 (patch) | |
tree | e430fab01f53690effb3ae9ae7bc0e8147601fe5 /media/blink/webmediaplayer_impl.cc | |
parent | 13d1b37913a9f8fee4af334a5673d9744e9cff65 (diff) | |
download | chromium_src-2fa37a05b45e8d50d3929546427106b1d4df21a9.zip chromium_src-2fa37a05b45e8d50d3929546427106b1d4df21a9.tar.gz chromium_src-2fa37a05b45e8d50d3929546427106b1d4df21a9.tar.bz2 |
Replace MessageLoopProxy usage with ThreadTaskRunnerHandle in src/media.
MessageLoopProxy is deprecated.
This basically does a search and replace:
MessageLoopProxy::current() -> ThreadTaskRunnerHandle::Get().
Relanding https://codereview.chromium.org/1108773002/
BUG=391045
Review URL: https://codereview.chromium.org/1116683002
Cr-Commit-Position: refs/heads/master@{#327653}
Diffstat (limited to 'media/blink/webmediaplayer_impl.cc')
-rw-r--r-- | media/blink/webmediaplayer_impl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/media/blink/webmediaplayer_impl.cc b/media/blink/webmediaplayer_impl.cc index e8eec4c..79c134f 100644 --- a/media/blink/webmediaplayer_impl.cc +++ b/media/blink/webmediaplayer_impl.cc @@ -15,10 +15,10 @@ #include "base/callback_helpers.h" #include "base/debug/alias.h" #include "base/debug/crash_logging.h" -#include "base/message_loop/message_loop_proxy.h" #include "base/metrics/histogram.h" #include "base/single_thread_task_runner.h" #include "base/synchronization/waitable_event.h" +#include "base/thread_task_runner_handle.h" #include "base/trace_event/trace_event.h" #include "cc/blink/web_layer_impl.h" #include "cc/layers/video_layer.h" @@ -114,7 +114,7 @@ WebMediaPlayerImpl::WebMediaPlayerImpl( network_state_(WebMediaPlayer::NetworkStateEmpty), ready_state_(WebMediaPlayer::ReadyStateHaveNothing), preload_(BufferedDataSource::AUTO), - main_task_runner_(base::MessageLoopProxy::current()), + main_task_runner_(base::ThreadTaskRunnerHandle::Get()), media_task_runner_(params.media_task_runner()), media_log_(params.media_log()), pipeline_(media_task_runner_, media_log_.get()), |