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

Unified Diff: chrome/browser/ui/webui/settings/about_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
« no previous file with comments | « no previous file | chrome/browser/ui/webui/settings/certificates_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/settings/about_handler.cc
diff --git a/chrome/browser/ui/webui/settings/about_handler.cc b/chrome/browser/ui/webui/settings/about_handler.cc
index 2ee8ce7b1a1b8390b67e5c374ea4e9fbc9f2123f..6784b926dc75e1af0527e47a2fa988294f357828 100644
--- a/chrome/browser/ui/webui/settings/about_handler.cc
+++ b/chrome/browser/ui/webui/settings/about_handler.cc
@@ -613,8 +613,7 @@ void AboutHandler::SetUpdateStatus(VersionUpdater::Status status,
}
#endif // defined(OS_CHROMEOS)
- CallJavascriptFunction("cr.webUIListenerCallback",
- base::Value("update-status-changed"), *event);
+ FireWebUIListener("update-status-changed", *event);
}
#if defined(OS_MACOSX)
@@ -641,8 +640,7 @@ void AboutHandler::SetPromotionState(VersionUpdater::PromotionState state) {
if (!text.empty())
promo_state.SetString("text", text);
- CallJavascriptFunction("cr.webUIListenerCallback",
- base::Value("promotion-state-changed"), promo_state);
+ FireWebUIListener("promotion-state-changed", promo_state);
}
#endif // defined(OS_MACOSX)
« no previous file with comments | « no previous file | chrome/browser/ui/webui/settings/certificates_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698