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

Unified Diff: components/browsing_data/core/counters/history_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: 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 c1c44512ba0dcf2b820ef9a1f1220f58346c123c..9f456853558de4c8b3ada0026a7cd4f38e3c8f2e 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 GetPrefType() == ClearBrowsingDataPreferenceType::BASIC
+ ? browsing_data::prefs::kDeleteBrowsingHistoryBasic
+ : browsing_data::prefs::kDeleteBrowsingHistory;
}
void HistoryCounter::Count() {

Powered by Google App Engine
This is Rietveld 408576698