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

Unified Diff: chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.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: chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.cc
diff --git a/chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.cc b/chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.cc
index ea54ef47a0d0c70bac6dcc2865b8cc0e7932cc5b..dd8d078d7892d8d5eb4838d738fec4e5e7f584a2 100644
--- a/chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.cc
+++ b/chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.cc
@@ -317,6 +317,7 @@ void ClearBrowsingDataHandler::UpdateHistoryDeletionDialog(bool show) {
void ClearBrowsingDataHandler::AddCounter(
std::unique_ptr<browsing_data::BrowsingDataCounter> counter) {
counter->Init(profile_->GetPrefs(),
+ browsing_data::ClearBrowsingDataTab::ADVANCED,
base::Bind(&ClearBrowsingDataHandler::UpdateCounterText,
base::Unretained(this)));
counters_.push_back(std::move(counter));
@@ -325,8 +326,7 @@ void ClearBrowsingDataHandler::AddCounter(
void ClearBrowsingDataHandler::UpdateCounterText(
std::unique_ptr<browsing_data::BrowsingDataCounter::Result> result) {
CallJavascriptFunction(
- "cr.webUIListenerCallback",
- base::StringValue("update-counter-text"),
+ "cr.webUIListenerCallback", base::StringValue("update-counter-text"),
base::StringValue(result->source()->GetPrefName()),
base::StringValue(GetChromeCounterTextFromResult(result.get())));
}
« no previous file with comments | « chrome/browser/ui/webui/options/clear_browser_data_handler.cc ('k') | components/browsing_data/core/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698