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

Unified Diff: components/invalidation/impl/invalidation_notifier.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_notifier.h
diff --git a/components/invalidation/impl/invalidation_notifier.h b/components/invalidation/impl/invalidation_notifier.h
index a6596ed6131303ec31f9d180674beffb9fa9f3c8..8e48c8a9e9a83efea12b9dea562f822c7ea5ce4d 100644
--- a/components/invalidation/impl/invalidation_notifier.h
+++ b/components/invalidation/impl/invalidation_notifier.h
@@ -19,9 +19,9 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
+#include "base/sequence_checker.h"
#include "base/sequenced_task_runner.h"
#include "base/single_thread_task_runner.h"
-#include "base/threading/non_thread_safe.h"
#include "components/invalidation/impl/invalidation_state_tracker.h"
#include "components/invalidation/impl/invalidator.h"
#include "components/invalidation/impl/invalidator_registrar.h"
@@ -33,8 +33,7 @@ namespace syncer {
// This class must live on the IO thread.
class INVALIDATION_EXPORT InvalidationNotifier
: public Invalidator,
- public SyncInvalidationListener::Delegate,
- public base::NonThreadSafe {
+ public SyncInvalidationListener::Delegate {
public:
// |invalidation_state_tracker| must be initialized.
InvalidationNotifier(
@@ -98,6 +97,8 @@ class INVALIDATION_EXPORT InvalidationNotifier
// The invalidation listener.
SyncInvalidationListener invalidation_listener_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
DISALLOW_COPY_AND_ASSIGN(InvalidationNotifier);
};
« no previous file with comments | « components/invalidation/impl/gcm_network_channel.cc ('k') | components/invalidation/impl/invalidation_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698