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

Unified Diff: content/browser/browser_main_loop.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
Index: content/browser/browser_main_loop.cc
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index e76edcb988c27b65f6f760ba79de7313f0591df4..94894ccfcff307cc835f721a47be9a4b968d5be3 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -48,7 +48,7 @@
#include "components/tracing/common/process_metrics_memory_dump_provider.h"
#include "components/tracing/common/trace_to_console.h"
#include "components/tracing/common/tracing_switches.h"
-#include "content/browser/audio_device_thread.h"
+#include "content/browser/audio_manager_thread.h"
#include "content/browser/browser_thread_impl.h"
#include "content/browser/device_sensors/device_sensor_service.h"
#include "content/browser/dom_storage/dom_storage_area.h"
@@ -1699,9 +1699,9 @@ void BrowserMainLoop::CreateAudioManager() {
audio_manager_ = GetContentClient()->browser()->CreateAudioManager(
MediaInternals::GetInstance());
if (!audio_manager_) {
- audio_thread_ = base::MakeUnique<AudioDeviceThread>();
+ audio_thread_ = base::MakeUnique<AudioManagerThread>();
audio_manager_ = media::AudioManager::Create(
- audio_thread_->GetTaskRunner(), audio_thread_->worker_task_runner(),
+ audio_thread_->task_runner(), audio_thread_->worker_task_runner(),
MediaInternals::GetInstance());
}
CHECK(audio_manager_);

Powered by Google App Engine
This is Rietveld 408576698