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

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: 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: 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 9db933397170af8013a6643b091276f4bf1eb118..461fad829093dc788fe6383597f637408a7da0fc 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
@@ -315,6 +315,7 @@ void ClearBrowsingDataHandler::UpdateHistoryDeletionDialog(bool show) {
void ClearBrowsingDataHandler::AddCounter(
std::unique_ptr<browsing_data::BrowsingDataCounter> counter) {
counter->Init(profile_->GetPrefs(),
+ browsing_data::ClearBrowsingDataPreferenceType::DEFAULT,
base::Bind(&ClearBrowsingDataHandler::UpdateCounterText,
base::Unretained(this)));
counters_.push_back(std::move(counter));
@@ -323,8 +324,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