Index: ash/host/ash_window_tree_host_unified.cc |
diff --git a/ash/host/ash_window_tree_host_unified.cc b/ash/host/ash_window_tree_host_unified.cc |
index fcdf6b75d3263ff018101a66ec87a00f149cf600..eb139350b80719f3a409430e2d394a0931d46072 100644 |
--- a/ash/host/ash_window_tree_host_unified.cc |
+++ b/ash/host/ash_window_tree_host_unified.cc |
@@ -186,14 +186,11 @@ bool AshWindowTreeHostUnified::DispatchKeyEventPostIME( |
const ui::KeyEvent& event) { |
ui::KeyEvent event_copy(event); |
input_method_handler()->SetPostIME(true); |
- ui::EventSource::DeliverEventToProcessor(&event_copy); |
+ ui::EventDispatchDetails details = |
+ event_processor()->OnEventFromSource(&event_copy); |
+ DCHECK(!details.dispatcher_destroyed); |
input_method_handler()->SetPostIME(false); |
return event_copy.stopped_propagation(); |
} |
-ui::EventDispatchDetails AshWindowTreeHostUnified::DeliverEventToProcessor( |
- ui::Event* event) { |
- return ui::EventSource::DeliverEventToProcessor(event); |
-} |
- |
} // namespace ash |