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

Unified Diff: media/audio/mac/audio_manager_mac.cc

Issue 2929823002: Making AudioManagerBase::ShutdownOnAudioThread() platform-agnostic (Closed)
Patch Set: Created 3 years, 6 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
Index: media/audio/mac/audio_manager_mac.cc
diff --git a/media/audio/mac/audio_manager_mac.cc b/media/audio/mac/audio_manager_mac.cc
index 09b6433e631d819fc6bc87ab72f4c55b5cc672d1..f8c94ab2ef57f8310cb9ceb4c48199bb9646887f 100644
--- a/media/audio/mac/audio_manager_mac.cc
+++ b/media/audio/mac/audio_manager_mac.cc
@@ -527,12 +527,12 @@ AudioManagerMac::AudioManagerMac(std::unique_ptr<AudioThread> audio_thread,
AudioManagerMac::~AudioManagerMac() = default;
-void AudioManagerMac::ShutdownOnAudioThread() {
+void AudioManagerMac::ShutdownOnAudioThread(bool immediately) {
// We are now in shutdown mode. This flag disables MaybeChangeBufferSize()
// and IncreaseIOBufferSizeIfPossible() which both touches native Core Audio
// APIs and they can fail and disrupt tests during shutdown.
in_shutdown_ = true;
- AudioManagerBase::ShutdownOnAudioThread();
+ AudioManagerBase::ShutdownOnAudioThread(immediately);
}
bool AudioManagerMac::HasAudioOutputDevices() {

Powered by Google App Engine
This is Rietveld 408576698