| Index: chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc
|
| diff --git a/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc b/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc
|
| index 0a2c84fdd45444a363c30f74f7a02da140f711e6..c978aadc5095254270b724ce778a197368eb3113 100644
|
| --- a/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc
|
| +++ b/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc
|
| @@ -215,14 +215,16 @@ static bool SetUserInputMethodImpl(
|
| return false;
|
| }
|
|
|
| - if (!Contains(manager->GetActiveInputMethodIds(), input_method)) {
|
| - if (!manager->EnableInputMethod(input_method)) {
|
| + if (!Contains(manager->GetActiveIMEState()->GetActiveInputMethodIds(),
|
| + input_method)) {
|
| + if (!manager->GetActiveIMEState()->EnableInputMethod(input_method)) {
|
| DLOG(ERROR) << "SigninScreenHandler::SetUserInputMethod('" << username
|
| << "'): user input method '" << input_method
|
| << "' is not enabled and enabling failed (ignored!).";
|
| }
|
| }
|
| - manager->ChangeInputMethod(input_method);
|
| + manager->GetActiveIMEState()->ChangeInputMethod(input_method,
|
| + false /* show_message */);
|
|
|
| return true;
|
| }
|
| @@ -1018,7 +1020,7 @@ void SigninScreenHandler::SetUserInputMethod(const std::string& username) {
|
| DVLOG(0) << "SetUserInputMethod('" << username
|
| << "'): failed to set user layout. Switching to default.";
|
|
|
| - manager->SetInputMethodLoginDefault();
|
| + manager->GetActiveIMEState()->SetInputMethodLoginDefault();
|
| }
|
| }
|
|
|
|
|