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

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

Issue 2671743002: Separate state of basic and advanced tab in CBD dialog (Closed)
Patch Set: fix .classpath file Created 3 years, 10 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 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() {

Powered by Google App Engine
This is Rietveld 408576698