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

Unified Diff: media/audio/audio_manager_base.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_base.h ('k') | media/audio/audio_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_manager_base.cc
diff --git a/media/audio/audio_manager_base.cc b/media/audio/audio_manager_base.cc
index 65399cd632f03e2d7963185df2c6125eb7e84a03..29c2679d57931263b4883b0cafa51da09efdda3f 100644
--- a/media/audio/audio_manager_base.cc
+++ b/media/audio/audio_manager_base.cc
@@ -443,21 +443,18 @@ std::unique_ptr<AudioLog> AudioManagerBase::CreateAudioLog(
return audio_log_factory_->CreateAudioLog(component);
}
-void AudioManagerBase::InitializeOutputDebugRecording(
- scoped_refptr<base::SingleThreadTaskRunner> file_task_runner) {
+void AudioManagerBase::InitializeOutputDebugRecording() {
if (!GetTaskRunner()->BelongsToCurrentThread()) {
// AudioManager is deleted on the audio thread, so it's safe to post
// unretained.
GetTaskRunner()->PostTask(
- FROM_HERE,
- base::Bind(&AudioManagerBase::InitializeOutputDebugRecording,
- base::Unretained(this), std::move(file_task_runner)));
+ FROM_HERE, base::Bind(&AudioManagerBase::InitializeOutputDebugRecording,
+ base::Unretained(this)));
return;
}
DCHECK(!debug_recording_manager_);
- debug_recording_manager_ = CreateAudioDebugRecordingManager(
- GetTaskRunner(), std::move(file_task_runner));
+ debug_recording_manager_ = CreateAudioDebugRecordingManager(GetTaskRunner());
}
void AudioManagerBase::EnableOutputDebugRecording(
@@ -476,10 +473,8 @@ void AudioManagerBase::DisableOutputDebugRecording() {
std::unique_ptr<AudioDebugRecordingManager>
AudioManagerBase::CreateAudioDebugRecordingManager(
- scoped_refptr<base::SingleThreadTaskRunner> task_runner,
- scoped_refptr<base::SingleThreadTaskRunner> file_task_runner) {
- return base::MakeUnique<AudioDebugRecordingManager>(
- std::move(task_runner), std::move(file_task_runner));
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner) {
+ return base::MakeUnique<AudioDebugRecordingManager>(std::move(task_runner));
}
void AudioManagerBase::SetMaxStreamCountForTesting(int max_input,
« no previous file with comments | « media/audio/audio_manager_base.h ('k') | media/audio/audio_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698