| Index: content/browser/renderer_host/render_widget_host_impl.cc
|
| diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
|
| index b95afafe6feb3012eab004b251ec1e0fcec8c884..cbd5bc81615d4c0e450d6b5c28030d295d5e4b29 100644
|
| --- a/content/browser/renderer_host/render_widget_host_impl.cc
|
| +++ b/content/browser/renderer_host/render_widget_host_impl.cc
|
| @@ -57,6 +57,7 @@
|
| #include "content/common/host_shared_bitmap_manager.h"
|
| #include "content/common/input_messages.h"
|
| #include "content/common/resize_params.h"
|
| +#include "content/common/text_input_state.h"
|
| #include "content/common/view_messages.h"
|
| #include "content/public/browser/native_web_keyboard_event.h"
|
| #include "content/public/browser/notification_service.h"
|
| @@ -2056,6 +2057,11 @@ void RenderWidgetHostImpl::DelayedAutoResized() {
|
| }
|
|
|
| void RenderWidgetHostImpl::DetachDelegate() {
|
| + // If |view_| has active text input state, it will not be able to update the
|
| + // |delegate_| about shut down and losing the state (see crbug.com/602144).
|
| + if (view_)
|
| + view_->TextInputStateChanged(TextInputState());
|
| +
|
| delegate_ = NULL;
|
| }
|
|
|
|
|