| Index: chrome/browser/chromeos/input_method/input_method_engine.cc
|
| diff --git a/chrome/browser/chromeos/input_method/input_method_engine.cc b/chrome/browser/chromeos/input_method/input_method_engine.cc
|
| index 0c53579b2eda32b74ce0f83c9dce0101e010ed4a..32c125d1e18a0a95af1f59ffa5b4e7b6a71be53d 100644
|
| --- a/chrome/browser/chromeos/input_method/input_method_engine.cc
|
| +++ b/chrome/browser/chromeos/input_method/input_method_engine.cc
|
| @@ -26,6 +26,7 @@
|
| #include "ui/base/ime/chromeos/extension_ime_util.h"
|
| #include "ui/base/ime/chromeos/ime_keymap.h"
|
| #include "ui/base/ime/chromeos/input_method_manager.h"
|
| +#include "ui/base/ime/input_method.h"
|
| #include "ui/base/ime/text_input_flags.h"
|
| #include "ui/chromeos/ime/input_method_menu_item.h"
|
| #include "ui/chromeos/ime/input_method_menu_manager.h"
|
| @@ -291,8 +292,8 @@ bool InputMethodEngine::SendKeyEvents(
|
| return false;
|
| }
|
|
|
| - ui::EventProcessor* dispatcher =
|
| - ash::Shell::GetPrimaryRootWindow()->GetHost()->event_processor();
|
| + ui::InputMethod* input_method =
|
| + ash::Shell::GetTargetRootWindow()->GetHost()->GetInputMethod();
|
|
|
| for (size_t i = 0; i < events.size(); ++i) {
|
| const KeyboardEvent& event = events[i];
|
| @@ -323,9 +324,7 @@ bool InputMethodEngine::SendKeyEvents(
|
| ui::EventTimeForNow());
|
| base::AutoReset<const ui::KeyEvent*> reset_sent_key(&sent_key_event_,
|
| &ui_event);
|
| - ui::EventDispatchDetails details = dispatcher->OnEventFromSource(&ui_event);
|
| - if (details.dispatcher_destroyed)
|
| - break;
|
| + input_method->DispatchKeyEvent(ui_event);
|
| }
|
|
|
| return true;
|
|
|