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 08b0ede6c7998a41ee41e06855f4eb667d4d1a93..0841752f93bb7d2839a82d240146b3f457176af7 100644 |
--- a/chrome/browser/ui/webui/options/chromeos/keyboard_handler.cc |
+++ b/chrome/browser/ui/webui/options/chromeos/keyboard_handler.cc |
@@ -4,8 +4,11 @@ |
#include "chrome/browser/ui/webui/options/chromeos/keyboard_handler.h" |
+#include "base/command_line.h" |
#include "base/values.h" |
#include "chrome/browser/chromeos/input_method/xkeyboard.h" |
+#include "chrome/common/chrome_switches.h" |
+#include "content/public/browser/web_ui.h" |
#include "grit/generated_resources.h" |
#include "ui/base/l10n/l10n_util.h" |
@@ -83,5 +86,15 @@ void KeyboardHandler::GetLocalizedValues(DictionaryValue* localized_strings) { |
} |
} |
+void KeyboardHandler::InitializePage() { |
+ if (CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kHasChromeOSKeyboard)) { |
Daniel Erat
2012/10/30 18:23:17
nit: don't think you need curly braces here (at le
Yusuke Sato
2012/10/30 19:27:23
Done.
|
+ return; |
+ } |
+ const base::FundamentalValue show_options(true); |
+ web_ui()->CallJavascriptFunction( |
+ "options.KeyboardOverlay.showCapsLockOptions", show_options); |
+} |
+ |
} // namespace options |
} // namespace chromeos |