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

Unified Diff: components/invalidation/impl/p2p_invalidation_service.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/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);
};
« no previous file with comments | « components/invalidation/impl/invalidation_service_android.cc ('k') | components/invalidation/impl/p2p_invalidation_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698