Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3241)

Unified Diff: chrome/renderer/media/cast_session_delegate.cc

Issue 2133083002: Remove all remaining traces of MessageLoopProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/media/cast_session_browsertest.cc ('k') | chrome/renderer/media/cast_threads.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/media/cast_session_delegate.cc
diff --git a/chrome/renderer/media/cast_session_delegate.cc b/chrome/renderer/media/cast_session_delegate.cc
index eddf8e34102b03abf1c55bf63c17a8ce2ac4221c..90d989572b75d149bff4709b2ada7bae7b3932e1 100644
--- a/chrome/renderer/media/cast_session_delegate.cc
+++ b/chrome/renderer/media/cast_session_delegate.cc
@@ -38,8 +38,7 @@ static base::LazyInstance<CastThreads> g_cast_threads =
LAZY_INSTANCE_INITIALIZER;
CastSessionDelegateBase::CastSessionDelegateBase()
- : io_task_runner_(
- content::RenderThread::Get()->GetIOMessageLoopProxy()),
+ : io_task_runner_(content::RenderThread::Get()->GetIOTaskRunner()),
weak_factory_(this) {
DCHECK(io_task_runner_.get());
#if defined(OS_WIN)
@@ -71,8 +70,8 @@ void CastSessionDelegateBase::StartUDP(
cast_environment_ = new CastEnvironment(
std::unique_ptr<base::TickClock>(new base::DefaultTickClock()),
base::ThreadTaskRunnerHandle::Get(),
- g_cast_threads.Get().GetAudioEncodeMessageLoopProxy(),
- g_cast_threads.Get().GetVideoEncodeMessageLoopProxy());
+ g_cast_threads.Get().GetAudioEncodeTaskRunner(),
+ g_cast_threads.Get().GetVideoEncodeTaskRunner());
// Rationale for using unretained: The callback cannot be called after the
// destruction of CastTransportIPC, and they both share the same thread.
« no previous file with comments | « chrome/renderer/media/cast_session_browsertest.cc ('k') | chrome/renderer/media/cast_threads.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698