Index: ui/views/mus/window_tree_host_mus.cc |
diff --git a/ui/views/mus/window_tree_host_mus.cc b/ui/views/mus/window_tree_host_mus.cc |
index 025ceb9b24290deca178a2dcf43a4098bff7c26e..03f61df34874747b8217f5b97910a3ce18ae8b1e 100644 |
--- a/ui/views/mus/window_tree_host_mus.cc |
+++ b/ui/views/mus/window_tree_host_mus.cc |
@@ -73,7 +73,10 @@ WindowTreeHostMus::~WindowTreeHostMus() { |
} |
void WindowTreeHostMus::DispatchEvent(ui::Event* event) { |
- if (event->IsKeyEvent() && GetInputMethod()) { |
+ // TODO(markdittmer): This flow is going away. For now, it is only intended |
+ // for managing key events. |
+ DCHECK(event->IsKeyEvent()); |
+ if (GetInputMethod()) { |
GetInputMethod()->DispatchKeyEvent(event->AsKeyEvent()); |
event->StopPropagation(); |
return; |