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

Unified Diff: media/cast/test/receiver.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/cast/test/receiver.cc
diff --git a/media/cast/test/receiver.cc b/media/cast/test/receiver.cc
index 642df75f68e7920f5481df23a1c36b43726b9460..f1654a89ed09030e7c6bee7c5dd5c1115837e145 100644
--- a/media/cast/test/receiver.cc
+++ b/media/cast/test/receiver.cc
@@ -561,9 +561,8 @@ int main(int argc, char** argv) {
new media::cast::StandaloneCastEnvironment);
// Start up Chromium audio system.
- const media::ScopedAudioManagerPtr audio_manager(
- media::AudioManager::CreateForTesting(
- base::ThreadTaskRunnerHandle::Get()));
+ auto audio_manager = media::AudioManager::CreateForTesting(
+ base::ThreadTaskRunnerHandle::Get());
CHECK(media::AudioManager::Get());
media::cast::FrameReceiverConfig audio_config =

Powered by Google App Engine
This is Rietveld 408576698