| Index: ui/views/corewm/input_method_event_filter.cc
|
| diff --git a/ui/views/corewm/input_method_event_filter.cc b/ui/views/corewm/input_method_event_filter.cc
|
| index 91f997c6a3b7611f18dd3668037dc43638cb43a0..9e8843fc18ed4325a3eccac64bcd4fdb7223534d 100644
|
| --- a/ui/views/corewm/input_method_event_filter.cc
|
| +++ b/ui/views/corewm/input_method_event_filter.cc
|
| @@ -64,8 +64,10 @@ bool InputMethodEventFilter::DispatchKeyEventPostIME(
|
| DCHECK_NE(event.native_event().message, static_cast<UINT>(WM_CHAR));
|
| #endif
|
| ui::TranslatedKeyEvent aura_event(event);
|
| - return target_dispatcher_->AsWindowTreeHostDelegate()->OnHostKeyEvent(
|
| - &aura_event);
|
| + ui::EventDispatchDetails details =
|
| + target_dispatcher_->OnEventFromSource(&aura_event);
|
| + CHECK(!details.dispatcher_destroyed);
|
| + return aura_event.handled();
|
| }
|
|
|
| } // namespace corewm
|
|
|