Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Unified Diff: ui/aura/mus/text_input_client_impl.cc

Issue 2557493002: IME for Mus: Use ui::InputMethodChromeOS to provide logic for ime driver. (Closed)
Patch Set: More cleanup. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698