Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / chromeos / input_method / accessibility.cc
index 1f19e4f..031e733 100644 (file)
@@ -31,7 +31,8 @@ void Accessibility::InputMethodChanged(InputMethodManager* imm,
     return;
 
   // Get the medium name of the changed input method (e.g. US, INTL, etc.)
-  const InputMethodDescriptor descriptor = imm_->GetCurrentInputMethod();
+  const InputMethodDescriptor descriptor =
+      imm_->GetActiveIMEState()->GetCurrentInputMethod();
   const std::string medium_name = base::UTF16ToUTF8(
       imm_->GetInputMethodUtil()->GetInputMethodMediumName(descriptor));