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

Unified Diff: media/audio/audio_debug_recording_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_debug_recording_manager.h ('k') | media/audio/audio_debug_recording_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_debug_recording_manager.cc
diff --git a/media/audio/audio_debug_recording_manager.cc b/media/audio/audio_debug_recording_manager.cc
index 51c7b3a6dd5349b71826fb7ac6f64606ed4bfe31..5a69798284f03889030f2c82c0b0f3b91486adbc 100644
--- a/media/audio/audio_debug_recording_manager.cc
+++ b/media/audio/audio_debug_recording_manager.cc
@@ -36,11 +36,8 @@ base::FilePath GetOutputDebugRecordingFileNameWithExtensions(
} // namespace
AudioDebugRecordingManager::AudioDebugRecordingManager(
- scoped_refptr<base::SingleThreadTaskRunner> task_runner,
- scoped_refptr<base::SingleThreadTaskRunner> file_task_runner)
- : task_runner_(std::move(task_runner)),
- file_task_runner_(std::move(file_task_runner)),
- weak_factory_(this) {}
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner)
+ : task_runner_(std::move(task_runner)), weak_factory_(this) {}
AudioDebugRecordingManager::~AudioDebugRecordingManager() {}
@@ -76,7 +73,7 @@ AudioDebugRecordingManager::RegisterDebugRecordingSource(
// returned recorder. But to not require this we use a weak pointer.
std::unique_ptr<AudioDebugRecordingHelper> recording_helper =
CreateAudioDebugRecordingHelper(
- params, task_runner_, file_task_runner_,
+ params, task_runner_,
base::BindOnce(
&AudioDebugRecordingManager::UnregisterDebugRecordingSource,
weak_factory_.GetWeakPtr(), id));
@@ -104,10 +101,9 @@ std::unique_ptr<AudioDebugRecordingHelper>
AudioDebugRecordingManager::CreateAudioDebugRecordingHelper(
const AudioParameters& params,
scoped_refptr<base::SingleThreadTaskRunner> task_runner,
- scoped_refptr<base::SingleThreadTaskRunner> file_task_runner,
base::OnceClosure on_destruction_closure) {
return base::MakeUnique<AudioDebugRecordingHelper>(
- params, task_runner, file_task_runner, std::move(on_destruction_closure));
+ params, task_runner, std::move(on_destruction_closure));
}
bool AudioDebugRecordingManager::IsDebugRecordingEnabled() {
« no previous file with comments | « media/audio/audio_debug_recording_manager.h ('k') | media/audio/audio_debug_recording_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698