| Index: chrome/browser/ui/webui/settings/site_settings_handler.cc
|
| diff --git a/chrome/browser/ui/webui/settings/site_settings_handler.cc b/chrome/browser/ui/webui/settings/site_settings_handler.cc
|
| index a88c2d5681825ae26f669e95de28591542ca46de..59a527eb8b23667fa662efe49ab04a54fdd9f66e 100644
|
| --- a/chrome/browser/ui/webui/settings/site_settings_handler.cc
|
| +++ b/chrome/browser/ui/webui/settings/site_settings_handler.cc
|
| @@ -647,9 +647,7 @@ void SiteSettingsHandler::SendIncognitoStatus(
|
| bool incognito_enabled = profile_->HasOffTheRecordProfile() &&
|
| !(was_destroyed && profile == profile_->GetOffTheRecordProfile());
|
|
|
| - CallJavascriptFunction("cr.webUIListenerCallback",
|
| - base::Value("onIncognitoStatusChanged"),
|
| - base::Value(incognito_enabled));
|
| + FireWebUIListener("onIncognitoStatusChanged", base::Value(incognito_enabled));
|
| }
|
|
|
| void SiteSettingsHandler::HandleFetchZoomLevels(const base::ListValue* args) {
|
| @@ -733,9 +731,7 @@ void SiteSettingsHandler::SendZoomLevels() {
|
| zoom_levels_exceptions.Append(std::move(exception));
|
| }
|
|
|
| - CallJavascriptFunction("cr.webUIListenerCallback",
|
| - base::Value("onZoomLevelsChanged"),
|
| - zoom_levels_exceptions);
|
| + FireWebUIListener("onZoomLevelsChanged", zoom_levels_exceptions);
|
| }
|
|
|
| void SiteSettingsHandler::HandleRemoveZoomLevel(const base::ListValue* args) {
|
|
|