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

Unified Diff: components/suggestions/suggestions_service_impl.cc

Issue 2494873003: [Sync] Allow sync start without sign-in if the local sync backend is on. (Closed)
Patch Set: Remove ifdefs around include. 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
« no previous file with comments | « components/precache/content/precache_manager.cc ('k') | components/sync/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/suggestions/suggestions_service_impl.cc
diff --git a/components/suggestions/suggestions_service_impl.cc b/components/suggestions/suggestions_service_impl.cc
index ae792b103f7007a7d88fa37471c7034a5e2c8d4b..f181599c6676b05f116bf142b2a409fff6a98ef0 100644
--- a/components/suggestions/suggestions_service_impl.cc
+++ b/components/suggestions/suggestions_service_impl.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;
« no previous file with comments | « components/precache/content/precache_manager.cc ('k') | components/sync/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698