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

Unified Diff: components/audio_modem/audio_recorder_impl.cc

Issue 1806313003: Pass task runners to AudioManager constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments from patch 48 Created 4 years, 8 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 | « components/audio_modem/audio_recorder_impl.h ('k') | components/audio_modem/audio_recorder_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/audio_modem/audio_recorder_impl.cc
diff --git a/components/audio_modem/audio_recorder_impl.cc b/components/audio_modem/audio_recorder_impl.cc
index 8d1b2c5913f34f9e975e74ba5a144134bb8b97cd..06bc72827fda4426d789da30b71e0745659b5c14 100644
--- a/components/audio_modem/audio_recorder_impl.cc
+++ b/components/audio_modem/audio_recorder_impl.cc
@@ -198,20 +198,4 @@ void AudioRecorderImpl::OnError(media::AudioInputStream* /* stream */) {
base::Unretained(this)));
}
-void AudioRecorderImpl::FlushAudioLoopForTesting() {
- if (media::AudioManager::Get()->GetTaskRunner()->BelongsToCurrentThread())
- return;
-
- // Queue task on the audio thread, when it is executed, that means we've
- // successfully executed all the tasks before us.
- base::RunLoop rl;
- media::AudioManager::Get()->GetTaskRunner()->PostTaskAndReply(
- FROM_HERE,
- base::Bind(
- base::IgnoreResult(&AudioRecorderImpl::FlushAudioLoopForTesting),
- base::Unretained(this)),
- rl.QuitClosure());
- rl.Run();
-}
-
} // namespace audio_modem
« no previous file with comments | « components/audio_modem/audio_recorder_impl.h ('k') | components/audio_modem/audio_recorder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698