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

Unified Diff: chrome/browser/browsing_data/browsing_data_counter_factory.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/browsing_data_counter_factory.cc
diff --git a/chrome/browser/browsing_data/browsing_data_counter_factory.cc b/chrome/browser/browsing_data/browsing_data_counter_factory.cc
index e9d0be0aa3e7c35bd3c7206987ed4e95701ee536..2cdc16c9955fa1e3c5c9f7c5e3bf87bf5e433544 100644
--- a/chrome/browser/browsing_data/browsing_data_counter_factory.cc
+++ b/chrome/browser/browsing_data/browsing_data_counter_factory.cc
@@ -46,7 +46,8 @@ BrowsingDataCounterFactory::GetForProfileAndPref(Profile* profile,
if (!AreCountersEnabled())
return nullptr;
- if (pref_name == browsing_data::prefs::kDeleteBrowsingHistory) {
+ if (pref_name == browsing_data::prefs::kDeleteBrowsingHistory ||
+ pref_name == browsing_data::prefs::kDeleteBrowsingHistoryBasic) {
return base::MakeUnique<browsing_data::HistoryCounter>(
HistoryServiceFactory::GetForProfile(
profile, ServiceAccessType::EXPLICIT_ACCESS),
@@ -55,7 +56,8 @@ BrowsingDataCounterFactory::GetForProfileAndPref(Profile* profile,
ProfileSyncServiceFactory::GetForProfile(profile));
}
- if (pref_name == browsing_data::prefs::kDeleteCache)
+ if (pref_name == browsing_data::prefs::kDeleteCache ||
+ pref_name == browsing_data::prefs::kDeleteCacheBasic)
return base::MakeUnique<CacheCounter>(profile);
if (pref_name == browsing_data::prefs::kDeletePasswords) {

Powered by Google App Engine
This is Rietveld 408576698