Index: components/browsing_data/core/counters/history_counter.cc |
diff --git a/components/browsing_data/core/counters/history_counter.cc b/components/browsing_data/core/counters/history_counter.cc |
index daf801073c250aceb7a3f26b8986fdb4a5e8b708..6fcb1c17ea94ec4a88a6225c190ccf4e7fd2ce78 100644 |
--- a/components/browsing_data/core/counters/history_counter.cc |
+++ b/components/browsing_data/core/counters/history_counter.cc |
@@ -46,7 +46,9 @@ bool HistoryCounter::HasTrackedTasks() { |
} |
const char* HistoryCounter::GetPrefName() const { |
- return browsing_data::prefs::kDeleteBrowsingHistory; |
+ return GetTab() == ClearBrowsingDataTab::BASIC |
+ ? browsing_data::prefs::kDeleteBrowsingHistoryBasic |
+ : browsing_data::prefs::kDeleteBrowsingHistory; |
} |
void HistoryCounter::Count() { |