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 1c2f5e8082501f1ab61a4ad42595c26268998e6d..9af187e42723bddaf296544f6abb77d4c35ea323 100644 |
--- a/chrome/browser/browsing_data/cache_counter.cc |
+++ b/chrome/browser/browsing_data/cache_counter.cc |
@@ -26,7 +26,9 @@ CacheCounter::~CacheCounter() { |
} |
const char* CacheCounter::GetPrefName() const { |
- return browsing_data::prefs::kDeleteCache; |
+ return GetPrefType() == browsing_data::ClearBrowsingDataPreferenceType::BASIC |
+ ? browsing_data::prefs::kDeleteCacheBasic |
+ : browsing_data::prefs::kDeleteCache; |
} |
void CacheCounter::Count() { |