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

Unified Diff: media/audio/audio_manager.cc

Issue 2885173002: Make AudioDebugFileWriter create its own file worker thread. (Closed)
Patch Set: Remove useless include Created 3 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
« no previous file with comments | « media/audio/audio_manager.h ('k') | media/audio/audio_manager_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_manager.cc
diff --git a/media/audio/audio_manager.cc b/media/audio/audio_manager.cc
index a30bb9edabb41e5904bf7488c096859783d87c59..87a2b121e5ca0f73d0e8199f59cc16e25b296013 100644
--- a/media/audio/audio_manager.cc
+++ b/media/audio/audio_manager.cc
@@ -281,12 +281,11 @@ AudioManager::~AudioManager() {
// static
std::unique_ptr<AudioManager> AudioManager::Create(
std::unique_ptr<AudioThread> audio_thread,
- scoped_refptr<base::SingleThreadTaskRunner> file_task_runner,
AudioLogFactory* audio_log_factory) {
std::unique_ptr<AudioManager> manager =
CreateAudioManager(std::move(audio_thread), audio_log_factory);
#if BUILDFLAG(ENABLE_WEBRTC)
- manager->InitializeOutputDebugRecording(std::move(file_task_runner));
+ manager->InitializeOutputDebugRecording();
#endif
return manager;
}
@@ -297,10 +296,7 @@ std::unique_ptr<AudioManager> AudioManager::CreateForTesting(
#if defined(OS_WIN)
GetHelper()->InitializeCOMForTesting();
#endif
- scoped_refptr<base::SingleThreadTaskRunner> file_task_runner =
- audio_thread->GetWorkerTaskRunner();
- return Create(std::move(audio_thread), std::move(file_task_runner),
- GetHelper()->fake_log_factory());
+ return Create(std::move(audio_thread), GetHelper()->fake_log_factory());
}
// static
« no previous file with comments | « media/audio/audio_manager.h ('k') | media/audio/audio_manager_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698