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

Unified Diff: media/audio/fake_audio_manager.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/fake_audio_manager.cc
diff --git a/media/audio/fake_audio_manager.cc b/media/audio/fake_audio_manager.cc
index 07e88a5b964c2d182451888d09ba2138049a62f8..f67d77fe6291fb9870dc253c7023d360da5fe758 100644
--- a/media/audio/fake_audio_manager.cc
+++ b/media/audio/fake_audio_manager.cc
@@ -25,9 +25,7 @@ FakeAudioManager::FakeAudioManager(
audio_log_factory) {
}
-FakeAudioManager::~FakeAudioManager() {
- Shutdown();
-}
+FakeAudioManager::~FakeAudioManager() = default;
// Implementation of AudioManager.
bool FakeAudioManager::HasAudioOutputDevices() { return false; }

Powered by Google App Engine
This is Rietveld 408576698