| 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 12373dc3b99e50b0152231a0b96686547c74de24..1c2f5e8082501f1ab61a4ad42595c26268998e6d 100644
|
| --- a/chrome/browser/browsing_data/cache_counter.cc
|
| +++ b/chrome/browser/browsing_data/cache_counter.cc
|
| @@ -30,18 +30,17 @@ const char* CacheCounter::GetPrefName() const {
|
| }
|
|
|
| void CacheCounter::Count() {
|
| - bool is_upper_limit = !GetPeriodStart().is_null();
|
| base::WeakPtr<browsing_data::ConditionalCacheCountingHelper> counter =
|
| browsing_data::ConditionalCacheCountingHelper::CreateForRange(
|
| content::BrowserContext::GetDefaultStoragePartition(profile_),
|
| - base::Time(), base::Time::Max())
|
| + GetPeriodStart(), base::Time::Max())
|
| ->CountAndDestroySelfWhenFinished(
|
| base::Bind(&CacheCounter::OnCacheSizeCalculated,
|
| - weak_ptr_factory_.GetWeakPtr(), is_upper_limit));
|
| + weak_ptr_factory_.GetWeakPtr()));
|
| }
|
|
|
| -void CacheCounter::OnCacheSizeCalculated(bool is_upper_limit,
|
| - int64_t result_bytes) {
|
| +void CacheCounter::OnCacheSizeCalculated(int64_t result_bytes,
|
| + bool is_upper_limit) {
|
| // A value less than 0 means a net error code.
|
| if (result_bytes < 0)
|
| return;
|
|
|