| Index: chrome/browser/ui/webui/settings/metrics_reporting_handler.cc
|
| diff --git a/chrome/browser/ui/webui/settings/metrics_reporting_handler.cc b/chrome/browser/ui/webui/settings/metrics_reporting_handler.cc
|
| index 06feda9074594d9a515c3045eb181149848b5ce0..29551ad44fd7022865e398e9b88ffa6235eaa939 100644
|
| --- a/chrome/browser/ui/webui/settings/metrics_reporting_handler.cc
|
| +++ b/chrome/browser/ui/webui/settings/metrics_reporting_handler.cc
|
| @@ -96,9 +96,7 @@ void MetricsReportingHandler::OnPrefChanged(const std::string& pref_name) {
|
| }
|
|
|
| void MetricsReportingHandler::SendMetricsReportingChange() {
|
| - CallJavascriptFunction("cr.webUIListenerCallback",
|
| - base::Value("metrics-reporting-change"),
|
| - *CreateMetricsReportingDict());
|
| + FireWebUIListener("metrics-reporting-change", *CreateMetricsReportingDict());
|
| }
|
|
|
| } // namespace settings
|
|
|