| 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;
|
| }
|
|
|