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

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: 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: 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() {
« no previous file with comments | « components/browsing_data/core/counters/browsing_data_counter_unittest.cc ('k') | components/browsing_data/core/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698