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

Unified Diff: ui/base/ime/input_method_auralinux.cc

Issue 166823002: Fix DCHECK failure in RenderWidgetHostViewAura::InsertText() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/input_method_auralinux.cc
diff --git a/ui/base/ime/input_method_auralinux.cc b/ui/base/ime/input_method_auralinux.cc
index 2ec945dca37aa92a4173d4eb37dec5a23202522a..88f3263bbfd5f4c18500e0ed4613901e4e137d9b 100644
--- a/ui/base/ime/input_method_auralinux.cc
+++ b/ui/base/ime/input_method_auralinux.cc
@@ -152,7 +152,7 @@ bool InputMethodAuraLinux::IsCandidatePopupOpen() const {
void InputMethodAuraLinux::OnCommit(const base::string16& text) {
TextInputClient* text_input_client = GetTextInputClient();
- if (text_input_client)
+ if (!IsTextInputTypeNone())
Yuki 2014/02/19 02:29:58 nit: if (!IsTextInputTypeNone()) GetTextInpu
text_input_client->InsertText(text);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698