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

Unified Diff: components/sync/driver/sync_service.h

Issue 2494873003: [Sync] Allow sync start without sign-in if the local sync backend is on. (Closed)
Patch Set: Merge pref changes from https://codereview.chromium.org/2528163002/. Created 4 years 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/driver/sync_service.h
diff --git a/components/sync/driver/sync_service.h b/components/sync/driver/sync_service.h
index a07f5d5e43e1cac3fb39857c034f5453068bd530..364ec9981be1d6f86998191268f7684ce33bb7dc 100644
--- a/components/sync/driver/sync_service.h
+++ b/components/sync/driver/sync_service.h
@@ -108,6 +108,12 @@ class SyncService : public DataTypeEncryptionHandler {
// datetypes are actually syncing, see GetActiveTypes() below.
virtual bool IsSyncActive() const = 0;
+ // Returns true if the local sync backend server has been enabled through a
+ // command line flag or policy. In this case sync is considered active but any
+ // implied consent for further related services e.g. Suggestions, Web History
+ // etc. is considered not granted.
+ virtual bool IsLocalSyncEnabled() const = 0;
+
// Triggers a GetUpdates call for the specified |types|, pulling any new data
// from the sync server.
virtual void TriggerRefresh(const ModelTypeSet& types) = 0;

Powered by Google App Engine
This is Rietveld 408576698