Skip to content
Snippets Groups Projects
Commit d415b730 authored by zork@chromium.org's avatar zork@chromium.org
Browse files

Explicitly set the input method on IME connected, even if it's the hardware layout.

BUG=none
TEST=Add the Dutch input method.  Set the input method to US Querty.  Log out.  Log in.  Ensure the starting input method is US Querty.

Review URL: http://codereview.chromium.org/3080027

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55170 0039d316-1c4b-4281-b951-d872f2087c98
parent 3a2e7c7b
No related merge requests found
......@@ -299,12 +299,7 @@ class InputMethodLibraryImpl : public InputMethodLibrary {
input_method_library->pending_config_requests_.insert(
input_method_library->current_config_values_.begin(),
input_method_library->current_config_values_.end());
// When the IME process starts up, the hardware layout will be the current
// method. If this is not correct, we'll need to explicitly change it.
if (input_method_library->active_input_method_ !=
kHardwareKeyboardLayout) {
input_method_library->need_input_method_set_ = true;
}
input_method_library->need_input_method_set_ = true;
input_method_library->FlushImeConfig();
} else {
// Stop attempting to resend config data, since it will continue to fail.
......@@ -601,4 +596,3 @@ InputMethodLibrary* InputMethodLibrary::GetImpl(bool stub) {
// Allows InvokeLater without adding refcounting. This class is a Singleton and
// won't be deleted until it's last InvokeLater is run.
DISABLE_RUNNABLE_METHOD_REFCOUNT(chromeos::InputMethodLibraryImpl);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment