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

Unified Diff: chrome/browser/chromeos/login/screen_locker.cc

Issue 9264004: Make almost all public functions in XKeyboard pure virtual (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 11 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/login/screen_locker.cc
diff --git a/chrome/browser/chromeos/login/screen_locker.cc b/chrome/browser/chromeos/login/screen_locker.cc
index 4334e2fadff73d0efeb853edc5c86b4451f301fe..881b46b27f899965d1c5fdbed9d024a570572401 100644
--- a/chrome/browser/chromeos/login/screen_locker.cc
+++ b/chrome/browser/chromeos/login/screen_locker.cc
@@ -231,7 +231,9 @@ void ScreenLocker::OnLoginFailure(const LoginFailure& error) {
// TODO(ivankr): use a format string instead of concatenation.
// Display a warning if Caps Lock is on.
- if (input_method::XKeyboard::CapsLockIsEnabled()) {
+ input_method::InputMethodManager* ime_manager =
+ input_method::InputMethodManager::GetInstance();
+ if (ime_manager->GetXKeyboard()->CapsLockIsEnabled()) {
msg += ASCIIToUTF16("\n") +
l10n_util::GetStringUTF16(IDS_LOGIN_ERROR_CAPS_LOCK_HINT);
}
« no previous file with comments | « chrome/browser/chromeos/input_method/xkeyboard_unittest.cc ('k') | chrome/browser/chromeos/login/webui_login_display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698