summaryrefslogtreecommitdiffstats
path: root/media/audio/audio_manager_base.cc
diff options
context:
space:
mode:
authoranujk.sharma <anujk.sharma@samsung.com>2015-04-29 22:51:32 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-30 05:52:07 +0000
commit2fa37a05b45e8d50d3929546427106b1d4df21a9 (patch)
treee430fab01f53690effb3ae9ae7bc0e8147601fe5 /media/audio/audio_manager_base.cc
parent13d1b37913a9f8fee4af334a5673d9744e9cff65 (diff)
downloadchromium_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/audio/audio_manager_base.cc')
-rw-r--r--media/audio/audio_manager_base.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/media/audio/audio_manager_base.cc b/media/audio/audio_manager_base.cc
index edaabf4..dbe1b68 100644
--- a/media/audio/audio_manager_base.cc
+++ b/media/audio/audio_manager_base.cc
@@ -7,7 +7,9 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/command_line.h"
+#include "base/single_thread_task_runner.h"
#include "base/strings/string_number_conversions.h"
+#include "base/thread_task_runner_handle.h"
#include "build/build_config.h"
#include "media/audio/audio_output_dispatcher_impl.h"
#include "media/audio/audio_output_proxy.h"
@@ -90,7 +92,7 @@ AudioManagerBase::AudioManagerBase(AudioLogFactory* audio_log_factory)
// thread leads to crashes and odd behavior. See http://crbug.com/158170.
// TODO(dalecurtis): We should require the message loop to be passed in.
if (base::MessageLoopForUI::IsCurrent()) {
- task_runner_ = base::MessageLoopProxy::current();
+ task_runner_ = base::ThreadTaskRunnerHandle::Get();
return;
}
#endif