Index: chrome/browser/chromeos/login/webui_login_display.cc |
diff --git a/chrome/browser/chromeos/login/webui_login_display.cc b/chrome/browser/chromeos/login/webui_login_display.cc |
index f770bd2e97f86ef082372d57df98a03bacc838fa..301005e70f59dad055089862dfede4e8b209aefa 100644 |
--- a/chrome/browser/chromeos/login/webui_login_display.cc |
+++ b/chrome/browser/chromeos/login/webui_login_display.cc |
@@ -4,6 +4,7 @@ |
#include "chrome/browser/chromeos/login/webui_login_display.h" |
+#include "chrome/browser/chromeos/input_method/input_method_manager.h" |
#include "chrome/browser/chromeos/input_method/xkeyboard.h" |
#include "chrome/browser/chromeos/login/webui_login_view.h" |
#include "chrome/browser/chromeos/login/wizard_accessibility_helper.h" |
@@ -112,7 +113,9 @@ void WebUILoginDisplay::ShowError(int error_msg_id, |
} |
// Display a warning if Caps Lock is on and error is authentication-related. |
- if (input_method::XKeyboard::CapsLockIsEnabled() && |
+ input_method::InputMethodManager* ime_manager = |
+ input_method::InputMethodManager::GetInstance(); |
+ if (ime_manager->GetXKeyboard()->CapsLockIsEnabled() && |
error_msg_id != IDS_LOGIN_ERROR_WHITELIST) { |
// TODO(ivankr): use a format string instead of concatenation. |
error_text += "\n" + |