Index: ui/aura/mus/text_input_client_impl.cc |
diff --git a/ui/aura/mus/text_input_client_impl.cc b/ui/aura/mus/text_input_client_impl.cc |
index 2dbc39eeace328886101103482c957fc31068e2a..782e8347afe2ef675e8685c71351599cb5cae68b 100644 |
--- a/ui/aura/mus/text_input_client_impl.cc |
+++ b/ui/aura/mus/text_input_client_impl.cc |
@@ -38,9 +38,7 @@ void TextInputClientImpl::InsertText(const std::string& text) { |
void TextInputClientImpl::InsertChar(std::unique_ptr<ui::Event> event) { |
DCHECK(event->IsKeyEvent()); |
- ui::KeyEvent* key_event = event->AsKeyEvent(); |
- DCHECK(key_event->is_char()); |
sadrul
2016/12/12 18:50:15
Why remove the DCHECK?
|
- text_input_client_->InsertChar(*key_event); |
+ text_input_client_->InsertChar(*event->AsKeyEvent()); |
} |
} // namespace aura |