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

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

Issue 2494873003: [Sync] Allow sync start without sign-in if the local sync backend is on. (Closed)
Patch Set: Rebased on ToT. Created 4 years, 1 month 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 b91c1cbe1fc1417903e020d5b328d1c829264a2a..b27ca4a23bc6a29c81ac503a65537f21c47aea7d 100644
--- a/components/sync/engine_impl/sync_scheduler_impl.h
+++ b/components/sync/engine_impl/sync_scheduler_impl.h
@@ -41,7 +41,8 @@ class SyncSchedulerImpl : public SyncScheduler, public base::NonThreadSafe {
SyncSchedulerImpl(const std::string& name,
BackoffDelayProvider* delay_provider,
SyncCycleContext* context,
- Syncer* syncer);
+ Syncer* syncer,
+ bool local_sync_backend_enabled);
// Calls Stop().
~SyncSchedulerImpl() override;
@@ -292,6 +293,10 @@ class SyncSchedulerImpl : public SyncScheduler, public base::NonThreadSafe {
// One-shot timer for scheduling GU retry according to delay set by server.
base::OneShotTimer retry_timer_;
+ // Whether the local file based sync backend should be enabled. Dictates if
+ // the sheduler should wait for authentication to happen or not.
+ bool local_sync_backend_enabled_;
+
base::WeakPtrFactory<SyncSchedulerImpl> weak_ptr_factory_;
// A second factory specially for weak_handle_this_, to allow the handle

Powered by Google App Engine
This is Rietveld 408576698