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

Unified Diff: chrome/browser/ui/webui/options/chromeos/keyboard_handler.cc

Issue 1995113002: Rename WebUI::CallJavascriptFunction to WebUI::CallJavascriptFunctionUnsafe (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/options/chromeos/keyboard_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/keyboard_handler.cc b/chrome/browser/ui/webui/options/chromeos/keyboard_handler.cc
index 1a97d9561f416dff0fa01c471e73fa6134f52c1c..0429a44a16ddeb27a9bf28a935bd411c2630c0dd 100644
--- a/chrome/browser/ui/webui/options/chromeos/keyboard_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/keyboard_handler.cc
@@ -155,7 +155,7 @@ void KeyboardHandler::InitializePage() {
chromeos::switches::kHasChromeOSDiamondKey);
const base::FundamentalValue show_diamond_key_options(has_diamond_key);
- web_ui()->CallJavascriptFunction(
+ web_ui()->CallJavascriptFunctionUnsafe(
"options.KeyboardOverlay.showDiamondKeyOptions",
show_diamond_key_options);
@@ -180,9 +180,8 @@ void KeyboardHandler::HandleShowKeyboardShortcuts(const base::ListValue* args) {
void KeyboardHandler::UpdateCapsLockOptions() const {
const base::FundamentalValue show_caps_lock_options(HasExternalKeyboard());
- web_ui()->CallJavascriptFunction(
- "options.KeyboardOverlay.showCapsLockOptions",
- show_caps_lock_options);
+ web_ui()->CallJavascriptFunctionUnsafe(
+ "options.KeyboardOverlay.showCapsLockOptions", show_caps_lock_options);
}
} // namespace options

Powered by Google App Engine
This is Rietveld 408576698