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

Unified Diff: components/precache/content/precache_manager.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
Index: components/precache/content/precache_manager.cc
diff --git a/components/precache/content/precache_manager.cc b/components/precache/content/precache_manager.cc
index 204ab492392722db4e52799aebea116da60f1305..1bb682005b2131774772dff5e16e7320198e4508 100644
--- a/components/precache/content/precache_manager.cc
+++ b/components/precache/content/precache_manager.cc
@@ -123,10 +123,11 @@ PrecacheManager::AllowedType PrecacheManager::PrecachingAllowed() const {
return AllowedType::PENDING;
// SyncService delegates to SyncPrefs, which must be called on the UI thread.
- if (history_service_ &&
+ if (history_service_ && !sync_service_->IsLocalSyncEnabled() &&
sync_service_->GetActiveDataTypes().Has(syncer::SESSIONS) &&
- !sync_service_->GetEncryptedDataTypes().Has(syncer::SESSIONS))
+ !sync_service_->GetEncryptedDataTypes().Has(syncer::SESSIONS)) {
return AllowedType::ALLOWED;
+ }
return AllowedType::DISALLOWED;
}
« no previous file with comments | « components/browsing_data/core/history_notice_utils_unittest.cc ('k') | components/suggestions/suggestions_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698