| 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 0a4594e6a9ce3a50c2d5e8ab69940bf8bb08c3d7..ef39f67144c49a2ddade3def6c199cd4c3b6eb1c 100644
|
| --- a/chrome/browser/ui/webui/options/chromeos/keyboard_handler.cc
|
| +++ b/chrome/browser/ui/webui/options/chromeos/keyboard_handler.cc
|
| @@ -156,7 +156,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);
|
|
|
| @@ -181,9 +181,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
|
|
|