Index: chrome/browser/chromeos/input_method/xkeyboard.cc |
diff --git a/chrome/browser/chromeos/input_method/xkeyboard.cc b/chrome/browser/chromeos/input_method/xkeyboard.cc |
index ecac25640de2ef5f817ba89121595fd3781f00cb..76cfa46968836e2583313ff666554dcdd8d5e3a6 100644 |
--- a/chrome/browser/chromeos/input_method/xkeyboard.cc |
+++ b/chrome/browser/chromeos/input_method/xkeyboard.cc |
@@ -145,20 +145,11 @@ XKeyboardImpl::XKeyboardImpl(const InputMethodUtil& util) |
std::string layout; |
for (size_t i = 0; i < arraysize(kKeepRightAltInputMethods); ++i) { |
layout = util.GetKeyboardLayoutName(kKeepRightAltInputMethods[i]); |
- // The empty check is necessary since USE_VIRTUAL_KEYBOARD build does not |
- // support some of the kKeepRightAltInputMethods elements. For example, |
- // when USE_VIRTUAL_KEYBOARD is defined, |
- // util.GetKeyboardLayoutName("xkb:us:intl:eng") would return "". |
- if (!layout.empty()) { |
- keep_right_alt_xkb_layout_names_.insert(layout); |
- } |
+ keep_right_alt_xkb_layout_names_.insert(layout); |
} |
for (size_t i = 0; i < arraysize(kCapsLockRemapped); ++i) { |
layout = util.GetKeyboardLayoutName(kCapsLockRemapped[i]); |
- // The empty check is for USE_VIRTUAL_KEYBOARD build. See above. |
- if (!layout.empty()) { |
- caps_lock_remapped_xkb_layout_names_.insert(layout); |
- } |
+ caps_lock_remapped_xkb_layout_names_.insert(layout); |
} |
} |