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

Unified Diff: components/sync/engine_impl/sync_scheduler_impl.h

Issue 2915453002: Deprecate NonThreadSafe in components/sync in favor of SequenceChecker. (Closed)
Patch Set: fix comment 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/sync/engine_impl/sync_scheduler_impl.h
diff --git a/components/sync/engine_impl/sync_scheduler_impl.h b/components/sync/engine_impl/sync_scheduler_impl.h
index 92572f8f64bc8bdf81d4be37f31aceb4486770d5..d83b03865d864181a51065ed63d433f1c55322bf 100644
--- a/components/sync/engine_impl/sync_scheduler_impl.h
+++ b/components/sync/engine_impl/sync_scheduler_impl.h
@@ -15,7 +15,7 @@
#include "base/gtest_prod_util.h"
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/sequence_checker.h"
#include "base/time/time.h"
#include "base/timer/timer.h"
#include "components/sync/engine/polling_constants.h"
@@ -32,7 +32,7 @@ namespace syncer {
class BackoffDelayProvider;
struct ModelNeutralState;
-class SyncSchedulerImpl : public SyncScheduler, public base::NonThreadSafe {
+class SyncSchedulerImpl : public SyncScheduler {
public:
// |name| is a display string to identify the syncer thread. Takes
// |ownership of |syncer| and |delay_provider|.
@@ -294,6 +294,8 @@ class SyncSchedulerImpl : public SyncScheduler, public base::NonThreadSafe {
// Dictates if the scheduler should wait for authentication to happen or not.
bool ignore_auth_credentials_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
base::WeakPtrFactory<SyncSchedulerImpl> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(SyncSchedulerImpl);
« no previous file with comments | « components/sync/engine_impl/js_mutation_event_observer.cc ('k') | components/sync/engine_impl/sync_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698