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) { |