Index: components/invalidation/impl/p2p_invalidation_service.h |
diff --git a/components/invalidation/impl/p2p_invalidation_service.h b/components/invalidation/impl/p2p_invalidation_service.h |
index e47ab0113c1044b4b75b1999f1e5c6acb2b4e9d7..4c4dbcc36e0bfb7fbca3e8b36b8a11aeb4b86492 100644 |
--- a/components/invalidation/impl/p2p_invalidation_service.h |
+++ b/components/invalidation/impl/p2p_invalidation_service.h |
@@ -7,7 +7,7 @@ |
#include "base/callback_forward.h" |
#include "base/macros.h" |
#include "base/memory/ref_counted.h" |
-#include "base/threading/non_thread_safe.h" |
+#include "base/sequence_checker.h" |
#include "components/invalidation/impl/p2p_invalidator.h" |
#include "components/invalidation/public/invalidation_service.h" |
#include "components/keyed_service/core/keyed_service.h" |
@@ -30,8 +30,7 @@ class InvalidationLogger; |
// This service is a wrapper around P2PInvalidator. Unlike other |
// InvalidationServices, it can both send and receive invalidations. It is used |
// only in tests, where we're unable to connect to a real invalidations server. |
-class P2PInvalidationService : public base::NonThreadSafe, |
- public InvalidationService { |
+class P2PInvalidationService : public InvalidationService { |
public: |
P2PInvalidationService( |
std::unique_ptr<IdentityProvider> identity_provider, |
@@ -64,6 +63,8 @@ class P2PInvalidationService : public base::NonThreadSafe, |
std::unique_ptr<syncer::P2PInvalidator> invalidator_; |
std::string invalidator_id_; |
+ SEQUENCE_CHECKER(sequence_checker_); |
+ |
DISALLOW_COPY_AND_ASSIGN(P2PInvalidationService); |
}; |