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

Unified Diff: chromecast/media/cma/ipc/media_message_fifo.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/ipc/media_message_fifo.cc
diff --git a/chromecast/media/cma/ipc/media_message_fifo.cc b/chromecast/media/cma/ipc/media_message_fifo.cc
index 5e4b239bc5dbaf50f6601e540dfb198e10d82c7a..bd68f3f8673e14683bed6022318866615580e199 100644
--- a/chromecast/media/cma/ipc/media_message_fifo.cc
+++ b/chromecast/media/cma/ipc/media_message_fifo.cc
@@ -8,7 +8,8 @@
#include "base/bind.h"
#include "base/location.h"
#include "base/logging.h"
-#include "base/message_loop/message_loop_proxy.h"
+#include "base/single_thread_task_runner.h"
+#include "base/thread_task_runner_handle.h"
#include "chromecast/media/cma/base/cma_logging.h"
#include "chromecast/media/cma/ipc/media_memory_chunk.h"
#include "chromecast/media/cma/ipc/media_message.h"
@@ -78,15 +79,15 @@ class FifoOwnedMemory : public MediaMemoryChunk {
DISALLOW_COPY_AND_ASSIGN(FifoOwnedMemory);
};
-FifoOwnedMemory::FifoOwnedMemory(
- void* data, size_t size,
- const scoped_refptr<MediaMessageFlag>& flag,
- const base::Closure& release_msg_cb)
- : task_runner_(base::MessageLoopProxy::current()),
- release_msg_cb_(release_msg_cb),
- data_(data),
- size_(size),
- flag_(flag) {
+FifoOwnedMemory::FifoOwnedMemory(void* data,
+ size_t size,
+ const scoped_refptr<MediaMessageFlag>& flag,
+ const base::Closure& release_msg_cb)
+ : task_runner_(base::ThreadTaskRunnerHandle::Get()),
+ release_msg_cb_(release_msg_cb),
+ data_(data),
+ size_(size),
+ flag_(flag) {
}
FifoOwnedMemory::~FifoOwnedMemory() {

Powered by Google App Engine
This is Rietveld 408576698