diff options
Diffstat (limited to 'chrome/browser/ui/webui/options/browser_options_handler.cc')
-rw-r--r-- | chrome/browser/ui/webui/options/browser_options_handler.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/ui/webui/options/browser_options_handler.cc b/chrome/browser/ui/webui/options/browser_options_handler.cc index 5152da9..800b984 100644 --- a/chrome/browser/ui/webui/options/browser_options_handler.cc +++ b/chrome/browser/ui/webui/options/browser_options_handler.cc @@ -360,6 +360,8 @@ void BrowserOptionsHandler::GetLocalizedValues(DictionaryValue* values) { IDS_OPTIONS_SETTINGS_ACCESSIBILITY_SCREEN_MAGNIFIER_PARTIAL }, { "accessibilityLargeCursor", IDS_OPTIONS_SETTINGS_ACCESSIBILITY_LARGE_CURSOR_DESCRIPTION }, + { "accessibilityStickyKeys", + IDS_OPTIONS_SETTINGS_ACCESSIBILITY_STICKY_KEYS_DESCRIPTION }, { "accessibilitySpokenFeedback", IDS_OPTIONS_SETTINGS_ACCESSIBILITY_SPOKEN_FEEDBACK_DESCRIPTION }, { "accessibilityTitle", @@ -500,6 +502,10 @@ void BrowserOptionsHandler::GetLocalizedValues(DictionaryValue* values) { magnifier_list->Append(option_partial.release()); values->Set("magnifierList", magnifier_list.release()); + + const CommandLine& command_line = *CommandLine::ForCurrentProcess(); + values->SetBoolean("enableStickyKeys", + command_line.HasSwitch(switches::kEnableStickyKeys)); #endif #if defined(OS_MACOSX) |