Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Unified Diff: chrome/browser/ui/webui/settings/settings_manage_profile_handler.cc

Issue 2886083002: MD Settings: Use FireWebUIListener() helper wherever possible. (Closed)
Patch Set: Fixed typo Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/settings/settings_manage_profile_handler.cc
diff --git a/chrome/browser/ui/webui/settings/settings_manage_profile_handler.cc b/chrome/browser/ui/webui/settings/settings_manage_profile_handler.cc
index 70ea07043c89d5c5a28368e2a4d90b2f2f949a4d..384014361c5fbd38f043d0ad2455b4e56906cc21 100644
--- a/chrome/browser/ui/webui/settings/settings_manage_profile_handler.cc
+++ b/chrome/browser/ui/webui/settings/settings_manage_profile_handler.cc
@@ -98,9 +98,7 @@ void ManageProfileHandler::OnJavascriptDisallowed() {
void ManageProfileHandler::OnProfileAvatarChanged(
const base::FilePath& profile_path) {
// This is necessary to send the potentially updated GAIA photo.
- CallJavascriptFunction("cr.webUIListenerCallback",
- base::Value("available-icons-changed"),
- *GetAvailableIcons());
+ FireWebUIListener("available-icons-changed", *GetAvailableIcons());
}
void ManageProfileHandler::HandleGetAvailableIcons(

Powered by Google App Engine
This is Rietveld 408576698