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

Unified Diff: chrome/browser/ui/webui/settings/chromeos/device_keyboard_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/device_keyboard_handler.cc
diff --git a/chrome/browser/ui/webui/settings/chromeos/device_keyboard_handler.cc b/chrome/browser/ui/webui/settings/chromeos/device_keyboard_handler.cc
index c29b9fbae3e04d2ddf9eb35daa0e8cf99dbab187..dbd70059915d5f201a693a46394f2ec646ec17ce 100644
--- a/chrome/browser/ui/webui/settings/chromeos/device_keyboard_handler.cc
+++ b/chrome/browser/ui/webui/settings/chromeos/device_keyboard_handler.cc
@@ -75,9 +75,7 @@ void KeyboardHandler::UpdateShowKeys() {
const base::Value has_diamond_key(
base::CommandLine::ForCurrentProcess()->HasSwitch(
chromeos::switches::kHasChromeOSDiamondKey));
- CallJavascriptFunction("cr.webUIListenerCallback",
- base::Value("show-keys-changed"), has_caps_lock,
- has_diamond_key);
+ FireWebUIListener("show-keys-changed", has_caps_lock, has_diamond_key);
}
} // namespace settings

Powered by Google App Engine
This is Rietveld 408576698