diff options
author | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-25 21:52:10 +0000 |
---|---|---|
committer | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-25 21:52:10 +0000 |
commit | 7fe2c0b8630fabd9919dc61757392ea2aac9d72b (patch) | |
tree | e62d4ffdc74da800596e584def2ba3eef58f5f8d /chrome/browser/render_widget_host.cc | |
parent | 1aba79c9137e3b44ab37b1d48f1575704331ed7e (diff) | |
download | chromium_src-7fe2c0b8630fabd9919dc61757392ea2aac9d72b.zip chromium_src-7fe2c0b8630fabd9919dc61757392ea2aac9d72b.tar.gz chromium_src-7fe2c0b8630fabd9919dc61757392ea2aac9d72b.tar.bz2 |
Attempt at fixing crash in WebContents::ShowWidget. I suspect this is
happening because the RenderWidgetHost is getting destroyed between
the time it is created but before it it shown (perhaps the renderer
went away).
BUG=4629
TEST=none
Review URL: http://codereview.chromium.org/12439
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5998 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/render_widget_host.cc')
-rw-r--r-- | chrome/browser/render_widget_host.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/render_widget_host.cc b/chrome/browser/render_widget_host.cc index 7374c92..41fd233 100644 --- a/chrome/browser/render_widget_host.cc +++ b/chrome/browser/render_widget_host.cc @@ -667,6 +667,11 @@ void RenderWidgetHost::ViewDestroyed() { } void RenderWidgetHost::Destroy() { + NotificationService::current()->Notify( + NOTIFY_RENDER_WIDGET_HOST_DESTROYED, + Source<RenderWidgetHost>(this), + NotificationService::NoDetails()); + // Tell the view to die. // Note that in the process of the view shutting down, it can call a ton // of other messages on us. So if you do any other deinitialization here, |