Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8365)

Unified Diff: chrome/browser/chromeos/events/event_rewriter.cc

Issue 187313002: Update StickyKeys overlay to show or hide AltGr depending on the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix broken unittest Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 3c0548a90e750b763dd02e7e576e3a33a1ac958b..25794d9c9c8856843dffec24bda7277d2aa55522 100644
--- a/chrome/browser/chromeos/events/event_rewriter.cc
+++ b/chrome/browser/chromeos/events/event_rewriter.cc
@@ -40,9 +40,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;
@@ -126,8 +123,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

Powered by Google App Engine
This is Rietveld 408576698