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

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: 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/precache/content/precache_manager.cc
diff --git a/components/precache/content/precache_manager.cc b/components/precache/content/precache_manager.cc
index 327fa2b6b83ceafdd748f932467358cb30803ee7..6315bf22069307ec080ffdb92239bab30e36de16 100644
--- a/components/precache/content/precache_manager.cc
+++ b/components/precache/content/precache_manager.cc
@@ -103,10 +103,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;
}

Powered by Google App Engine
This is Rietveld 408576698