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

Unified Diff: media/audio/sounds/test_data.h

Issue 2076423004: Remove calls to MessageLoop::current() in media. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR Created 4 years, 6 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/audio/alsa/alsa_output.cc ('k') | media/audio/sounds/test_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/sounds/test_data.h
diff --git a/media/audio/sounds/test_data.h b/media/audio/sounds/test_data.h
index c94505d0ec672e39385d9374346765f0e8e25dcb..8e14076d370e5d6271a37cf9e61fb6e3670cfce9 100644
--- a/media/audio/sounds/test_data.h
+++ b/media/audio/sounds/test_data.h
@@ -10,12 +10,10 @@
#include "base/callback.h"
#include "base/compiler_specific.h"
#include "base/macros.h"
+#include "base/memory/ref_counted.h"
+#include "base/single_thread_task_runner.h"
#include "media/audio/sounds/audio_stream_handler.h"
-namespace base {
-class MessageLoop;
-}
-
namespace media {
const int kTestAudioKey = 1000;
@@ -40,7 +38,7 @@ class TestObserver : public AudioStreamHandler::TestObserver {
int cursor() const { return cursor_; }
private:
- base::MessageLoop* loop_;
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
base::Closure quit_;
int num_play_requests_;
« no previous file with comments | « media/audio/alsa/alsa_output.cc ('k') | media/audio/sounds/test_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698