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

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: remove mock code 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 6d263d8ca56762c400a4828244b9a1e76c2a838c..616533e479035f3a89e18f22987fbf8628b06e5a 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
@@ -319,6 +319,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));
@@ -327,8 +328,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())));
}

Powered by Google App Engine
This is Rietveld 408576698