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

Unified Diff: content/browser/audio_device_thread.cc

Issue 2558303004: Cleanup AudioDeviceThread to avoid accidental misuse. (Closed)
Patch Set: Rename to AudioManagerThread. Fix tests. Created 4 years 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 | « content/browser/audio_device_thread.h ('k') | content/browser/audio_manager_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/audio_device_thread.cc
diff --git a/content/browser/audio_device_thread.cc b/content/browser/audio_device_thread.cc
deleted file mode 100644
index 21cceb5d99f3fb28b8b08568922ec5a3e55f312e..0000000000000000000000000000000000000000
--- a/content/browser/audio_device_thread.cc
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright 2016 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 "base/threading/thread_task_runner_handle.h"
-#include "build/build_config.h"
-#include "content/browser/audio_device_thread.h"
-
-namespace content {
-
-scoped_refptr<base::SingleThreadTaskRunner> AudioDeviceThread::GetTaskRunner() {
-#if defined(OS_MACOSX)
- // On Mac audio task runner must belong to the main thread.
- // See http://crbug.com/158170.
- return base::ThreadTaskRunnerHandle::Get();
-#else
- return thread_.task_runner();
-#endif // defined(OS_MACOSX)
- }
-
-AudioDeviceThread::AudioDeviceThread() : thread_("AudioThread") {
-#if defined(OS_WIN)
- thread_.init_com_with_mta(true);
-#endif
- CHECK(thread_.Start());
-}
-
-} // namespace content
« no previous file with comments | « content/browser/audio_device_thread.h ('k') | content/browser/audio_manager_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698