| Index: media/audio/audio_manager_base.cc
|
| diff --git a/media/audio/audio_manager_base.cc b/media/audio/audio_manager_base.cc
|
| index 92a255d095cfb22ed58b36b766c22aa8084b2d58..5565d4864b2f8e97756d4923d1322a750d65f376 100644
|
| --- a/media/audio/audio_manager_base.cc
|
| +++ b/media/audio/audio_manager_base.cc
|
| @@ -348,21 +348,6 @@ void AudioManagerBase::ShutdownOnAudioThread() {
|
|
|
| // Close all output streams.
|
| output_dispatchers_.clear();
|
| -
|
| -#if defined(OS_MACOSX)
|
| - // On mac, AudioManager runs on the main thread, loop for which stops
|
| - // processing task queue at this point. So even if tasks to close the
|
| - // streams are enqueued, they would not run leading to CHECKs getting hit
|
| - // in the destructor about open streams. Close them explicitly here.
|
| - // crbug.com/608049.
|
| - for (auto iter = input_streams_.begin(); iter != input_streams_.end();) {
|
| - // Note: Closing the stream will invalidate the iterator.
|
| - // Increment the iterator before closing the stream.
|
| - AudioInputStream* stream = *iter++;
|
| - stream->Close();
|
| - }
|
| - CHECK(input_streams_.empty());
|
| -#endif // OS_MACOSX
|
| }
|
|
|
| void AudioManagerBase::AddOutputDeviceChangeListener(
|
|
|