| Index: content/browser/dom_storage/dom_storage_context_impl.cc
|
| diff --git a/content/browser/dom_storage/dom_storage_context_impl.cc b/content/browser/dom_storage/dom_storage_context_impl.cc
|
| index 9f121cdf9f413dbd348a2010669cc946f002e5e0..c1fc1db24f079b0e85cbd10020e0a1943f0b3879 100644
|
| --- a/content/browser/dom_storage/dom_storage_context_impl.cc
|
| +++ b/content/browser/dom_storage/dom_storage_context_impl.cc
|
| @@ -443,9 +443,9 @@ void DOMStorageContextImpl::PurgeMemory(PurgeOption purge_option) {
|
| // size since it can be expensive trying to estimate the sqlite usage for
|
| // all databases. For low end devices purge all inactive areas.
|
| bool should_purge =
|
| - (is_low_end_device_ && initial_stats.inactive_area_count) ||
|
| - initial_stats.total_cache_size > kMaxCacheSize ||
|
| - initial_stats.total_area_count > kMaxStorageAreaCount;
|
| + initial_stats.inactive_area_count &&
|
| + (is_low_end_device_ || initial_stats.total_cache_size > kMaxCacheSize ||
|
| + initial_stats.total_area_count > kMaxStorageAreaCount);
|
| if (!should_purge)
|
| return;
|
|
|
|
|