Index: chrome/browser/chromeos/system_key_event_listener.cc |
diff --git a/chrome/browser/chromeos/system_key_event_listener.cc b/chrome/browser/chromeos/system_key_event_listener.cc |
index 6740eafb5f2e9bb1feda7c279dae6ac7720d4b37..09d5a7bc28a37ae9039e3e1006871400e2cbea82 100644 |
--- a/chrome/browser/chromeos/system_key_event_listener.cc |
+++ b/chrome/browser/chromeos/system_key_event_listener.cc |
@@ -76,10 +76,12 @@ SystemKeyEventListener* SystemKeyEventListener::GetInstance() { |
SystemKeyEventListener::SystemKeyEventListener() |
: stopped_(false), |
- num_lock_mask_(input_method::XKeyboard::GetNumLockMask()), |
+ num_lock_mask_(0), |
xkb_event_base_(0) { |
- input_method::XKeyboard::GetLockedModifiers( |
- num_lock_mask_, &caps_lock_is_on_, &num_lock_is_on_); |
+ input_method::XKeyboard* xkeyboard = |
+ input_method::InputMethodManager::GetInstance()->GetXKeyboard(); |
+ num_lock_mask_ = xkeyboard->GetNumLockMask(); |
+ xkeyboard->GetLockedModifiers(&caps_lock_is_on_, &num_lock_is_on_); |
Display* display = ui::GetXDisplay(); |
key_brightness_down_ = XKeysymToKeycode(display, |