| Index: chrome/browser/browsing_data/cache_counter.cc
|
| diff --git a/chrome/browser/browsing_data/cache_counter.cc b/chrome/browser/browsing_data/cache_counter.cc
|
| index 557be8a39e14d9b52d2036af2657d79b13c30017..d131033608d252204bd70105a4bd5a213afe24b4 100644
|
| --- a/chrome/browser/browsing_data/cache_counter.cc
|
| +++ b/chrome/browser/browsing_data/cache_counter.cc
|
| @@ -32,6 +32,8 @@ const char* CacheCounter::GetPrefName() const {
|
| }
|
|
|
| void CacheCounter::Count() {
|
| + // Cancel existing requests.
|
| + weak_ptr_factory_.InvalidateWeakPtrs();
|
| base::WeakPtr<browsing_data::ConditionalCacheCountingHelper> counter =
|
| browsing_data::ConditionalCacheCountingHelper::CreateForRange(
|
| content::BrowserContext::GetDefaultStoragePartition(profile_),
|
|
|