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

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

Issue 2153863002: Move counters for passwords, history and autofill to components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@separate_build_targets_in_components_bd
Patch Set: Addressed comments Created 4 years, 5 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
« no previous file with comments | « chrome/browser/browsing_data/cache_counter.h ('k') | chrome/browser/browsing_data/downloads_counter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1a9022da083f925bcdab988dfe6d4a711740e812..5a5890c84e1a63762c628f60274c7900425b7777 100644
--- a/chrome/browser/browsing_data/cache_counter.cc
+++ b/chrome/browser/browsing_data/cache_counter.cc
@@ -9,14 +9,17 @@
#include "net/base/net_errors.h"
CacheCounter::CacheCounter(Profile* profile)
- : BrowsingDataCounter(browsing_data::prefs::kDeleteCache),
- profile_(profile),
+ : profile_(profile),
pending_(false),
weak_ptr_factory_(this) {}
CacheCounter::~CacheCounter() {
}
+const char* CacheCounter::GetPrefName() const {
+ return browsing_data::prefs::kDeleteCache;
+}
+
void CacheCounter::Count() {
// TODO(msramek): StoragePartitionHttpCacheDataRemover currently does not
// implement counting for subsets of cache, only for the entire cache. Thus,
« no previous file with comments | « chrome/browser/browsing_data/cache_counter.h ('k') | chrome/browser/browsing_data/downloads_counter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698