Shutdown RenderWidgetHost owned by RenderFrameHost when destroying the RenderFrameHost.
commit6a3da17d3e84b2a1150bd3fe301586b9960b5d44
authorlfg <lfg@chromium.org>
Tue, 28 Apr 2015 18:23:33 +0000 (28 11:23 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 28 Apr 2015 18:25:17 +0000 (28 18:25 +0000)
treee47b61b51caee575863c072cbb3ebb26fbf4a82f
parentfb6edb44b47dfcb661608f4e33d776480c34bdac
Shutdown RenderWidgetHost owned by RenderFrameHost when destroying the RenderFrameHost.

This is needed because the RenderThread in the renderer process owns a reference to the RenderWidget, and that reference is only released when the RenderWidgetHost sends ViewMsg_Close, which happens on RenderWidgetHost::Shutdown.

BUG=464764

Review URL: https://codereview.chromium.org/1052223008

Cr-Commit-Position: refs/heads/master@{#327331}
content/browser/frame_host/render_frame_host_impl.cc
content/browser/frame_host/render_frame_host_impl.h
content/browser/renderer_host/render_widget_host_impl.cc
content/browser/renderer_host/render_widget_host_impl.h
content/renderer/render_frame_impl.cc