| Index: content/browser/frame_host/render_widget_host_view_guest.cc
|
| diff --git a/content/browser/frame_host/render_widget_host_view_guest.cc b/content/browser/frame_host/render_widget_host_view_guest.cc
|
| index 5db60538a01060edbd719353c65a438a5ca3a54e..a6df4e8fbf2acfa90a69df75bc11b3537ceaba70 100644
|
| --- a/content/browser/frame_host/render_widget_host_view_guest.cc
|
| +++ b/content/browser/frame_host/render_widget_host_view_guest.cc
|
| @@ -349,18 +349,6 @@ void RenderWidgetHostViewGuest::SetIsLoading(bool is_loading) {
|
| platform_view_->SetIsLoading(is_loading);
|
| }
|
|
|
| -void RenderWidgetHostViewGuest::TextInputStateChanged(
|
| - const ViewHostMsg_TextInputState_Params& params) {
|
| - if (!guest_)
|
| - return;
|
| -
|
| - RenderWidgetHostViewBase* rwhv = GetOwnerRenderWidgetHostView();
|
| - if (!rwhv)
|
| - return;
|
| - // Forward the information to embedding RWHV.
|
| - rwhv->TextInputStateChanged(params);
|
| -}
|
| -
|
| void RenderWidgetHostViewGuest::ImeCancelComposition() {
|
| if (!guest_)
|
| return;
|
| @@ -521,6 +509,10 @@ void RenderWidgetHostViewGuest::DestroyGuestView() {
|
| // processing calls coming in after we release host_.
|
| NotifyObserversAboutShutdown();
|
|
|
| + // The WebContentsImpl should be notified about us so that it will not hold
|
| + // an invalid text input state which was due to active text on this view.
|
| + NotifyHostDelegateAboutShutdown();
|
| +
|
| host_->SetView(NULL);
|
| host_ = NULL;
|
| base::MessageLoop::current()->DeleteSoon(FROM_HERE, this);
|
|
|