| Index: chrome/browser/ui/webui/settings/profile_info_handler.cc
|
| diff --git a/chrome/browser/ui/webui/settings/profile_info_handler.cc b/chrome/browser/ui/webui/settings/profile_info_handler.cc
|
| index f2b9fabf885a598e8bfc6078fb39cc74f8121772..bac2e490ef53d8d4d38ef2c7398720a7e7dfe45c 100644
|
| --- a/chrome/browser/ui/webui/settings/profile_info_handler.cc
|
| +++ b/chrome/browser/ui/webui/settings/profile_info_handler.cc
|
| @@ -153,9 +153,7 @@ void ProfileInfoHandler::PushProfileStatsCount(
|
| // PushProfileStatsCount gets invoked multiple times as each stat becomes
|
| // available. Therefore, webUIListenerCallback mechanism is used instead of
|
| // the Promise callback approach.
|
| - CallJavascriptFunction("cr.webUIListenerCallback",
|
| - base::Value(kProfileStatsCountReadyEventName),
|
| - base::Value(count));
|
| + FireWebUIListener(kProfileStatsCountReadyEventName, base::Value(count));
|
| }
|
| #endif
|
|
|
| @@ -172,9 +170,7 @@ void ProfileInfoHandler::HandleGetProfileManagesSupervisedUsers(
|
| }
|
|
|
| void ProfileInfoHandler::PushProfileInfo() {
|
| - CallJavascriptFunction("cr.webUIListenerCallback",
|
| - base::Value(kProfileInfoChangedEventName),
|
| - *GetAccountNameAndIcon());
|
| + FireWebUIListener(kProfileInfoChangedEventName, *GetAccountNameAndIcon());
|
| }
|
|
|
| void ProfileInfoHandler::PushProfileManagesSupervisedUsersStatus() {
|
|
|