Index: chrome/browser/chromeos/events/event_rewriter.cc |
diff --git a/chrome/browser/chromeos/events/event_rewriter.cc b/chrome/browser/chromeos/events/event_rewriter.cc |
index 567cb996f4b5fc2eec32ee280af2cf301788e446..c1e5ef03c2c38e275e32ab2f99dec26685c1ca8c 100644 |
--- a/chrome/browser/chromeos/events/event_rewriter.cc |
+++ b/chrome/browser/chromeos/events/event_rewriter.cc |
@@ -42,9 +42,6 @@ namespace { |
const int kBadDeviceId = -1; |
-const char kNeo2LayoutId[] = "xkb:de:neo:ger"; |
-const char kCaMultixLayoutId[] = "xkb:ca:multix:fra"; |
- |
// A key code and a flag we should use when a key is remapped to |remap_to|. |
const struct ModifierRemapping { |
int remap_to; |
@@ -128,8 +125,7 @@ bool IsMod3UsedByCurrentInputMethod() { |
// TODO(yusukes): Remove the restriction. |
chromeos::input_method::InputMethodManager* manager = |
chromeos::input_method::InputMethodManager::Get(); |
- return manager->GetCurrentInputMethod().id() == kNeo2LayoutId || |
- manager->GetCurrentInputMethod().id() == kCaMultixLayoutId; |
+ return manager->IsMod3UsedByCurrentInputMethod(); |
} |
} // namespace |