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

Unified Diff: components/invalidation/impl/invalidation_service_android.h

Issue 2909113002: Deprecate NonThreadSafe in components/invalidation 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
Index: components/invalidation/impl/invalidation_service_android.h
diff --git a/components/invalidation/impl/invalidation_service_android.h b/components/invalidation/impl/invalidation_service_android.h
index 9dd51ee31379c69c5245d2e8e747c725bc718614..d6526a1a139707830a220ab59795b177a2543eec 100644
--- a/components/invalidation/impl/invalidation_service_android.h
+++ b/components/invalidation/impl/invalidation_service_android.h
@@ -14,7 +14,7 @@
#include "base/android/scoped_java_ref.h"
#include "base/compiler_specific.h"
#include "base/macros.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/sequence_checker.h"
#include "components/invalidation/impl/invalidation_logger.h"
#include "components/invalidation/impl/invalidator_registrar.h"
#include "components/invalidation/public/invalidation_service.h"
@@ -26,9 +26,7 @@ class InvalidationLogger;
// This InvalidationService is used to deliver invalidations on Android. The
// Android operating system has its own mechanisms for delivering invalidations.
-class InvalidationServiceAndroid
- : public base::NonThreadSafe,
- public InvalidationService {
+class InvalidationServiceAndroid : public InvalidationService {
public:
explicit InvalidationServiceAndroid();
~InvalidationServiceAndroid() override;
@@ -87,6 +85,8 @@ class InvalidationServiceAndroid
// and invalidations.
InvalidationLogger logger_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
DISALLOW_COPY_AND_ASSIGN(InvalidationServiceAndroid);
};
« no previous file with comments | « components/invalidation/impl/invalidation_notifier.cc ('k') | components/invalidation/impl/invalidation_service_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698