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()))); |
} |