| Index: chrome/browser/ui/webui/settings/protocol_handlers_handler.cc
|
| diff --git a/chrome/browser/ui/webui/settings/protocol_handlers_handler.cc b/chrome/browser/ui/webui/settings/protocol_handlers_handler.cc
|
| index c851eb51e1356e54c40dd006b685bcc6d7396e9a..701fdad9632a2f67618c2b69b35667b803f1ef10 100644
|
| --- a/chrome/browser/ui/webui/settings/protocol_handlers_handler.cc
|
| +++ b/chrome/browser/ui/webui/settings/protocol_handlers_handler.cc
|
| @@ -129,11 +129,8 @@ void ProtocolHandlersHandler::UpdateHandlerList() {
|
|
|
| std::unique_ptr<base::ListValue> ignored_handlers(new base::ListValue());
|
| GetIgnoredHandlers(ignored_handlers.get());
|
| - CallJavascriptFunction("cr.webUIListenerCallback",
|
| - base::Value("setProtocolHandlers"), handlers);
|
| - CallJavascriptFunction("cr.webUIListenerCallback",
|
| - base::Value("setIgnoredProtocolHandlers"),
|
| - *ignored_handlers);
|
| + FireWebUIListener("setProtocolHandlers", handlers);
|
| + FireWebUIListener("setIgnoredProtocolHandlers", *ignored_handlers);
|
| }
|
|
|
| void ProtocolHandlersHandler::HandleObserveProtocolHandlers(
|
| @@ -150,9 +147,8 @@ void ProtocolHandlersHandler::HandleObserveProtocolHandlersEnabledState(
|
| }
|
|
|
| void ProtocolHandlersHandler::SendHandlersEnabledValue() {
|
| - CallJavascriptFunction("cr.webUIListenerCallback",
|
| - base::Value("setHandlersEnabled"),
|
| - base::Value(GetProtocolHandlerRegistry()->enabled()));
|
| + FireWebUIListener("setHandlersEnabled",
|
| + base::Value(GetProtocolHandlerRegistry()->enabled()));
|
| }
|
|
|
| void ProtocolHandlersHandler::HandleRemoveHandler(const base::ListValue* args) {
|
|
|