Commit afacb4b0 authored by yoshiki@chromium.org's avatar yoshiki@chromium.org

Fix the badly inverted flag to show caps lock settings.

BUG=174924
TEST=on lumpy, launch the settings page, and confirm the setting is hidden.

R=nona@chromium.org
TBR=nkostylev@chromium.org
# TBR for just inverting the flag...

Review URL: https://chromiumcodereview.appspot.com/12207143

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182160 0039d316-1c4b-4281-b951-d872f2087c98
parent d4197746
...@@ -96,7 +96,7 @@ void KeyboardHandler::GetLocalizedValues(DictionaryValue* localized_strings) { ...@@ -96,7 +96,7 @@ void KeyboardHandler::GetLocalizedValues(DictionaryValue* localized_strings) {
void KeyboardHandler::InitializePage() { void KeyboardHandler::InitializePage() {
bool chromeos_keyboard = CommandLine::ForCurrentProcess()->HasSwitch( bool chromeos_keyboard = CommandLine::ForCurrentProcess()->HasSwitch(
switches::kHasChromeOSKeyboard); switches::kHasChromeOSKeyboard);
const base::FundamentalValue show_caps_lock_options(chromeos_keyboard); const base::FundamentalValue show_caps_lock_options(!chromeos_keyboard);
bool has_diamond_key = CommandLine::ForCurrentProcess()->HasSwitch( bool has_diamond_key = CommandLine::ForCurrentProcess()->HasSwitch(
switches::kHasChromeOSDiamondKey); switches::kHasChromeOSDiamondKey);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment