Commit 96c37d11 authored by nona@chromium.org's avatar nona@chromium.org

Reset pending input method id.

With this change, the responsibility of clearing |pending_input_method_| is
moved to ChangeInputMethodInternal.

BUG=243149
TEST=Manually checked on link device.

Review URL: https://chromiumcodereview.appspot.com/15954008

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202607 0039d316-1c4b-4281-b951-d872f2087c98
parent 410247e1
...@@ -309,6 +309,7 @@ bool InputMethodManagerImpl::ChangeInputMethodInternal( ...@@ -309,6 +309,7 @@ bool InputMethodManagerImpl::ChangeInputMethodInternal(
return false; return false;
} }
pending_input_method_.clear();
IBusInputContextClient* input_context = IBusInputContextClient* input_context =
chromeos::DBusThreadManager::Get()->GetIBusInputContextClient(); chromeos::DBusThreadManager::Get()->GetIBusInputContextClient();
const std::string current_input_method_id = current_input_method_.id(); const std::string current_input_method_id = current_input_method_.id();
...@@ -401,10 +402,8 @@ void InputMethodManagerImpl::OnComponentExtensionInitialized( ...@@ -401,10 +402,8 @@ void InputMethodManagerImpl::OnComponentExtensionInitialized(
LoadNecessaryComponentExtensions(); LoadNecessaryComponentExtensions();
if (!pending_input_method_.empty()) { if (!pending_input_method_.empty())
if (ChangeInputMethodInternal(pending_input_method_, false)) ChangeInputMethodInternal(pending_input_method_, false);
pending_input_method_.clear();
}
} }
...@@ -722,10 +721,8 @@ void InputMethodManagerImpl::OnConnected() { ...@@ -722,10 +721,8 @@ void InputMethodManagerImpl::OnConnected() {
} }
} }
if (!pending_input_method_.empty()) { if (!pending_input_method_.empty())
if (ChangeInputMethodInternal(pending_input_method_, false)) ChangeInputMethodInternal(pending_input_method_, false);
pending_input_method_.clear();
}
} }
void InputMethodManagerImpl::OnDisconnected() { void InputMethodManagerImpl::OnDisconnected() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment