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

Unified Diff: media/audio/audio_manager_base.cc

Issue 2542953003: Adds CHECK to ensure all input streams are closed as expected. (Closed)
Patch Set: Created 4 years 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 | « no previous file | no next file » | 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 bcfa6490d48c39e51eeb594dccb3ee68277437a5..a9d46a386d22670052d61e6390c7b1a875d7c443 100644
--- a/media/audio/audio_manager_base.cc
+++ b/media/audio/audio_manager_base.cc
@@ -324,6 +324,7 @@ void AudioManagerBase::Shutdown() {
AudioInputStream* stream = *iter++;
stream->Close();
}
+ CHECK(input_streams_.empty());
#endif // OS_MACOSX
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698