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

Unified Diff: components/invalidation/impl/ticl_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/ticl_invalidation_service.h
diff --git a/components/invalidation/impl/ticl_invalidation_service.h b/components/invalidation/impl/ticl_invalidation_service.h
index 2f613547ce6eb5a1f42eea3e8f4448e600914e09..fa681704127a0800d59c31118f7083f9141930ef 100644
--- a/components/invalidation/impl/ticl_invalidation_service.h
+++ b/components/invalidation/impl/ticl_invalidation_service.h
@@ -11,7 +11,7 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/sequence_checker.h"
#include "base/timer/timer.h"
#include "base/values.h"
#include "components/invalidation/impl/invalidation_logger.h"
@@ -42,8 +42,7 @@ class GCMInvalidationBridge;
// This InvalidationService wraps the C++ Invalidation Client (TICL) library.
// It provides invalidations for desktop platforms (Win, Mac, Linux).
-class TiclInvalidationService : public base::NonThreadSafe,
- public InvalidationService,
+class TiclInvalidationService : public InvalidationService,
public OAuth2TokenService::Consumer,
public OAuth2TokenService::Observer,
public IdentityProvider::Observer,
@@ -160,6 +159,8 @@ class TiclInvalidationService : public base::NonThreadSafe,
// for debugging.
base::DictionaryValue network_channel_options_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
DISALLOW_COPY_AND_ASSIGN(TiclInvalidationService);
};
« no previous file with comments | « components/invalidation/impl/sync_invalidation_listener.cc ('k') | components/invalidation/impl/ticl_invalidation_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698