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

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

Issue 2671743002: Separate state of basic and advanced tab in CBD dialog (Closed)
Patch Set: rebase and fix compilation 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..557be8a39e14d9b52d2036af2657d79b13c30017 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 GetTab() == browsing_data::ClearBrowsingDataTab::BASIC
+ ? browsing_data::prefs::kDeleteCacheBasic
+ : browsing_data::prefs::kDeleteCache;
}
void CacheCounter::Count() {

Powered by Google App Engine
This is Rietveld 408576698