| 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 384193e86449091ccb09b6af4663432a1bb241f9..12373dc3b99e50b0152231a0b96686547c74de24 100644
|
| --- a/chrome/browser/browsing_data/cache_counter.cc
|
| +++ b/chrome/browser/browsing_data/cache_counter.cc
|
| @@ -20,7 +20,6 @@ CacheCounter::CacheResult::~CacheResult() {}
|
|
|
| CacheCounter::CacheCounter(Profile* profile)
|
| : profile_(profile),
|
| - pending_(false),
|
| weak_ptr_factory_(this) {}
|
|
|
| CacheCounter::~CacheCounter() {
|
| @@ -39,13 +38,10 @@ void CacheCounter::Count() {
|
| ->CountAndDestroySelfWhenFinished(
|
| base::Bind(&CacheCounter::OnCacheSizeCalculated,
|
| weak_ptr_factory_.GetWeakPtr(), is_upper_limit));
|
| - pending_ = true;
|
| }
|
|
|
| void CacheCounter::OnCacheSizeCalculated(bool is_upper_limit,
|
| int64_t result_bytes) {
|
| - pending_ = false;
|
| -
|
| // A value less than 0 means a net error code.
|
| if (result_bytes < 0)
|
| return;
|
| @@ -53,7 +49,3 @@ void CacheCounter::OnCacheSizeCalculated(bool is_upper_limit,
|
| base::MakeUnique<CacheResult>(this, result_bytes, is_upper_limit);
|
| ReportResult(std::move(result));
|
| }
|
| -
|
| -bool CacheCounter::Pending() {
|
| - return pending_;
|
| -}
|
|
|