Fix a browser crash which occurs because the RenderWidgetHostViewAura instance attemp...
commit989ba20edf79b504a59806f1d73e63adcb0ecf2e
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 27 Jun 2014 22:41:24 +0000 (27 22:41 +0000)
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 27 Jun 2014 22:41:24 +0000 (27 22:41 +0000)
tree5e414acbd00cbbbc755138bd9953b3baced2ab46
parentc3c2abb6c117830b7ed277f229b53e91b19ae2a4
Fix a browser crash which occurs because the RenderWidgetHostViewAura instance attempts to dereference a deleted LegacyRenderWidgetHostHWND pointer.

In the normal case the destruction of the LegacyRenderWidgetHostHWND instance is controlled by the
RenderWidgetHostViewAura class with a call to the LegacyRenderWidgetHostHWND::Destroy method which in turn
destroys the LegacyRenderWidgetHostHWND instance.

However there are cases like in browser_tests where the main window is destroyed via DestroyWindow which in turn
destroys the LegacyRenderWidgetHostHWND instance via its HWND and then the RenderWidgetHostViewAura instance derefs the LegacyRenderWidgetHostHWND object to destroy it etc.

Fix is to notify the RenderWidgetHostViewAura class that the LegacyRenderWidgetHostHWND instance was destroyed.

BUG=389191,388762
R=sky

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@280435 0039d316-1c4b-4281-b951-d872f2087c98
content/browser/renderer_host/legacy_render_widget_host_win.cc
content/browser/renderer_host/legacy_render_widget_host_win.h
content/browser/renderer_host/render_widget_host_view_aura.cc
content/browser/renderer_host/render_widget_host_view_aura.h
tools/valgrind/drmemory/suppressions.txt