summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--views/controls/textfield/native_textfield_views.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/views/controls/textfield/native_textfield_views.cc b/views/controls/textfield/native_textfield_views.cc
index 1f4f0d8..cf3e14a 100644
--- a/views/controls/textfield/native_textfield_views.cc
+++ b/views/controls/textfield/native_textfield_views.cc
@@ -918,13 +918,15 @@ void NativeTextfieldViews::InitContextMenuIfRequired() {
}
void NativeTextfieldViews::OnTextInputTypeChanged() {
- DCHECK(textfield_->GetInputMethod());
- textfield_->GetInputMethod()->OnTextInputTypeChanged(textfield_);
+ // TODO(suzhe): changed from DCHECK. See http://crbug.com/81320.
+ if (textfield_->GetInputMethod())
+ textfield_->GetInputMethod()->OnTextInputTypeChanged(textfield_);
}
void NativeTextfieldViews::OnCaretBoundsChanged() {
- DCHECK(textfield_->GetInputMethod());
- textfield_->GetInputMethod()->OnCaretBoundsChanged(textfield_);
+ // TODO(suzhe): changed from DCHECK. See http://crbug.com/81320.
+ if (textfield_->GetInputMethod())
+ textfield_->GetInputMethod()->OnCaretBoundsChanged(textfield_);
}
void NativeTextfieldViews::OnBeforeUserAction() {