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

Unified Diff: media/audio/audio_manager_base.cc

Issue 2784433002: Ensures that audio tasks cannot run after AudioManager is deleted. (Closed)
Patch Set: fixes content_browsertests and content_unittests Created 3 years, 9 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/audio_manager_base.cc
diff --git a/media/audio/audio_manager_base.cc b/media/audio/audio_manager_base.cc
index 456adf7cc8908299640004114f29d60f351ff1ba..c3579e68abb289377b27148d5338f4b090105847 100644
--- a/media/audio/audio_manager_base.cc
+++ b/media/audio/audio_manager_base.cc
@@ -98,8 +98,6 @@ AudioManagerBase::AudioManagerBase(
audio_log_factory_(audio_log_factory) {}
AudioManagerBase::~AudioManagerBase() {
- DCHECK(GetTaskRunner()->BelongsToCurrentThread());
-
// All the output streams should have been deleted.
CHECK_EQ(0, num_output_streams_);
// All the input streams should have been deleted.
@@ -360,7 +358,6 @@ void AudioManagerBase::Shutdown() {
AudioInputStream* stream = *iter++;
stream->Close();
}
- CHECK(input_streams_.empty());
#endif // OS_MACOSX
}

Powered by Google App Engine
This is Rietveld 408576698