Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(448)

Unified Diff: chrome/browser/browsing_data/cache_counter.cc

Issue 2623033003: Always show counters in the material design Clear Browsing Data dialog. (Closed)
Patch Set: iOS fix #2 Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;
-}
« no previous file with comments | « chrome/browser/browsing_data/cache_counter.h ('k') | chrome/browser/browsing_data/cache_counter_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698