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

Unified Diff: chromecast/media/base/media_message_loop.cc

Issue 1916973004: [chromecast] Delete MediaMessageLoop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cmathread -> castmediathread Created 4 years, 8 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 | « chromecast/media/base/media_message_loop.h ('k') | chromecast/media/cma/backend/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/media/base/media_message_loop.cc
diff --git a/chromecast/media/base/media_message_loop.cc b/chromecast/media/base/media_message_loop.cc
deleted file mode 100644
index d8023179c024b494ba17a1c63ca1bed417234536..0000000000000000000000000000000000000000
--- a/chromecast/media/base/media_message_loop.cc
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chromecast/media/base/media_message_loop.h"
-
-#include "base/threading/thread.h"
-
-namespace chromecast {
-namespace media {
-
-// static
-scoped_refptr<base::SingleThreadTaskRunner> MediaMessageLoop::GetTaskRunner() {
- return GetInstance()->thread_->task_runner();
-}
-
-// static
-MediaMessageLoop* MediaMessageLoop::GetInstance() {
- return base::Singleton<MediaMessageLoop>::get();
-}
-
-MediaMessageLoop::MediaMessageLoop()
- : thread_(new base::Thread("CmaThread")) {
- thread_->Start();
-}
-
-MediaMessageLoop::~MediaMessageLoop() {
- // This will automatically shutdown the thread.
-}
-
-} // namespace media
-} // namespace chromecast
« no previous file with comments | « chromecast/media/base/media_message_loop.h ('k') | chromecast/media/cma/backend/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698