Chromium Code Reviews| Index: content/browser/frame_host/render_widget_host_view_child_frame.cc |
| diff --git a/content/browser/frame_host/render_widget_host_view_child_frame.cc b/content/browser/frame_host/render_widget_host_view_child_frame.cc |
| index c27af7e68bc4d35ae014a653597a531ed0f451cb..3b44173619bfeb6d597c72e9cf7050e3c76a1301 100644 |
| --- a/content/browser/frame_host/render_widget_host_view_child_frame.cc |
| +++ b/content/browser/frame_host/render_widget_host_view_child_frame.cc |
| @@ -196,11 +196,6 @@ void RenderWidgetHostViewChildFrame::SetIsLoading(bool is_loading) { |
| NOTREACHED(); |
| } |
| -void RenderWidgetHostViewChildFrame::TextInputStateChanged( |
| - const ViewHostMsg_TextInputState_Params& params) { |
| - // TODO(kenrb): Implement. |
| -} |
| - |
| void RenderWidgetHostViewChildFrame::RenderProcessGone( |
| base::TerminationStatus status, |
| int error_code) { |
| @@ -223,6 +218,11 @@ void RenderWidgetHostViewChildFrame::Destroy() { |
| // RenderWidgetHostInputEventRouter afterwards. |
| NotifyObserversAboutShutdown(); |
| + // If this view has an active text input, the RenderWidgetHostDelegate should |
| + // be notified. |
| + if (text_input_state()->type != ui::TEXT_INPUT_TYPE_NONE) |
| + TextInputStateChanged(TextInputState()); |
|
Charlie Reis
2016/03/15 18:32:00
Why are we passing in an empty one rather than tex
EhsanK
2016/03/15 23:51:17
This line will reset the WebContents knowledge of
Charlie Reis
2016/03/16 16:55:13
I see-- I didn't notice that this was during Destr
EhsanK
2016/03/30 20:46:03
Done.
|
| + |
| host_->SetView(NULL); |
| host_ = NULL; |
| base::MessageLoop::current()->DeleteSoon(FROM_HERE, this); |