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

Unified Diff: components/suggestions/suggestions_service.cc

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/suggestions/suggestions_service.cc
diff --git a/components/suggestions/suggestions_service.cc b/components/suggestions/suggestions_service.cc
index 47072e811b4356c16219bc1bccad12bbd57368ba..8df253f8e8b20f7aabedf4d0730c8e196dad05d8 100644
--- a/components/suggestions/suggestions_service.cc
+++ b/components/suggestions/suggestions_service.cc
@@ -66,7 +66,7 @@ enum SyncState {
};
SyncState GetSyncState(syncer::SyncService* sync) {
- if (!sync || !sync->CanSyncStart())
+ if (!sync || !sync->CanSyncStart() || sync->IsLocalSyncEnabled())
return SYNC_OR_HISTORY_SYNC_DISABLED;
if (!sync->IsSyncActive() || !sync->ConfigurationDone())
return NOT_INITIALIZED_ENABLED;

Powered by Google App Engine
This is Rietveld 408576698