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

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

Issue 2914593002: Replace deprecated base::NonThreadSafe in media/audio in favor of SequenceChecker. (Closed)
Patch Set: 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/audio/sounds/audio_stream_handler.cc ('k') | media/audio/sounds/sounds_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/sounds/sounds_manager.h
diff --git a/media/audio/sounds/sounds_manager.h b/media/audio/sounds/sounds_manager.h
index 004886d6c359fcaae64e9115e39555cb21e99751..6faf65231d3c521497d0e371ae663c7f78f0074d 100644
--- a/media/audio/sounds/sounds_manager.h
+++ b/media/audio/sounds/sounds_manager.h
@@ -7,8 +7,8 @@
#include "base/containers/hash_tables.h"
#include "base/macros.h"
+#include "base/sequence_checker.h"
#include "base/strings/string_piece.h"
-#include "base/threading/non_thread_safe.h"
#include "base/time/time.h"
#include "media/base/media_export.h"
@@ -16,7 +16,7 @@ namespace media {
// This class is used for reproduction of system sounds. All methods
// should be accessed from the Audio thread.
-class MEDIA_EXPORT SoundsManager : public base::NonThreadSafe {
+class MEDIA_EXPORT SoundsManager {
public:
typedef int SoundKey;
@@ -55,6 +55,8 @@ class MEDIA_EXPORT SoundsManager : public base::NonThreadSafe {
SoundsManager();
virtual ~SoundsManager();
+ SEQUENCE_CHECKER(sequence_checker_);
+
private:
DISALLOW_COPY_AND_ASSIGN(SoundsManager);
};
« no previous file with comments | « media/audio/sounds/audio_stream_handler.cc ('k') | media/audio/sounds/sounds_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698