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

Unified Diff: chrome/browser/ui/webui/settings/chromeos/easy_unlock_settings_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/chromeos/easy_unlock_settings_handler.cc
diff --git a/chrome/browser/ui/webui/settings/chromeos/easy_unlock_settings_handler.cc b/chrome/browser/ui/webui/settings/chromeos/easy_unlock_settings_handler.cc
index c16ef08e51090a0f8e11d5e66b95941d5ccfc0b4..299d20bd1b771219d579a8a80580848a6d26fff8 100644
--- a/chrome/browser/ui/webui/settings/chromeos/easy_unlock_settings_handler.cc
+++ b/chrome/browser/ui/webui/settings/chromeos/easy_unlock_settings_handler.cc
@@ -86,9 +86,8 @@ void EasyUnlockSettingsHandler::OnJavascriptDisallowed() {
}
void EasyUnlockSettingsHandler::OnTurnOffOperationStatusChanged() {
- CallJavascriptFunction("cr.webUIListenerCallback",
- base::Value("easy-unlock-turn-off-flow-status"),
- base::Value(GetTurnOffFlowStatus()));
+ FireWebUIListener("easy-unlock-turn-off-flow-status",
+ base::Value(GetTurnOffFlowStatus()));
}
void EasyUnlockSettingsHandler::SendEnabledStatus() {

Powered by Google App Engine
This is Rietveld 408576698