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

Unified Diff: chromecast/media/cma/test/media_component_device_feeder_for_test.cc

Issue 1142513004: Chromecast: MessageLoopProxy cleanup --> SingleThreadTaskRunner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 7 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
Index: chromecast/media/cma/test/media_component_device_feeder_for_test.cc
diff --git a/chromecast/media/cma/test/media_component_device_feeder_for_test.cc b/chromecast/media/cma/test/media_component_device_feeder_for_test.cc
index 2c25bc242b599eee42085209b95f680346c30521..84cc3da2b0762928ae1d54d5c052ea709b00deed 100644
--- a/chromecast/media/cma/test/media_component_device_feeder_for_test.cc
+++ b/chromecast/media/cma/test/media_component_device_feeder_for_test.cc
@@ -13,7 +13,8 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
-#include "base/message_loop/message_loop_proxy.h"
+#include "base/single_thread_task_runner.h"
+#include "base/thread_task_runner_handle.h"
#include "base/time/time.h"
#include "chromecast/media/base/decrypt_context.h"
#include "chromecast/media/cma/backend/audio_pipeline_device.h"
@@ -108,10 +109,9 @@ void MediaComponentDeviceFeederForTest::OnFramePushed(
if (feeding_completed_)
return;
- base::MessageLoopProxy::current()->PostTask(
- FROM_HERE,
- base::Bind(&MediaComponentDeviceFeederForTest::Feed,
- base::Unretained(this)));
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
+ FROM_HERE, base::Bind(&MediaComponentDeviceFeederForTest::Feed,
+ base::Unretained(this)));
}
void MediaComponentDeviceFeederForTest::OnEos() {
« no previous file with comments | « chromecast/media/cma/test/frame_segmenter_for_test.cc ('k') | chromecast/media/cma/test/mock_frame_consumer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698