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

Unified Diff: media/mojo/services/test_mojo_media_client.h

Issue 2784433002: Ensures that audio tasks cannot run after AudioManager is deleted. (Closed)
Patch Set: rebase Created 3 years, 7 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
« no previous file with comments | « media/cast/test/receiver.cc ('k') | media/mojo/services/test_mojo_media_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/test_mojo_media_client.h
diff --git a/media/mojo/services/test_mojo_media_client.h b/media/mojo/services/test_mojo_media_client.h
index 85b0ff3f0af158830951a986dbf95c8ce638f41e..f593ed8ded2f44f7f29a98dcbbc0ddec0c589398 100644
--- a/media/mojo/services/test_mojo_media_client.h
+++ b/media/mojo/services/test_mojo_media_client.h
@@ -9,7 +9,6 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "media/audio/audio_manager.h"
#include "media/mojo/services/mojo_media_client.h"
namespace base {
@@ -18,6 +17,7 @@ class SingleThreadTaskRunner;
namespace media {
+class AudioManager;
class AudioRendererSink;
class MediaLog;
class RendererFactory;
@@ -41,7 +41,7 @@ class TestMojoMediaClient : public MojoMediaClient {
service_manager::mojom::InterfaceProvider* /* host_interfaces */) final;
private:
- ScopedAudioManagerPtr audio_manager_;
+ std::unique_ptr<AudioManager> audio_manager_;
DISALLOW_COPY_AND_ASSIGN(TestMojoMediaClient);
};
« no previous file with comments | « media/cast/test/receiver.cc ('k') | media/mojo/services/test_mojo_media_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698