Index: content/browser/web_contents/web_contents_impl.cc |
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc |
index 7d86a5f1a41ce65328c2513e5c5e0547c3f5052f..ccc97aafd86ee09efd7cd275cc402d06d9b3a8bc 100644 |
--- a/content/browser/web_contents/web_contents_impl.cc |
+++ b/content/browser/web_contents/web_contents_impl.cc |
@@ -289,8 +289,9 @@ class WebContentsImpl::DestructionObserver : public WebContentsObserver { |
} |
// WebContentsObserver: |
- virtual void WebContentsDestroyed(WebContents* web_contents) OVERRIDE { |
- owner_->OnWebContentsDestroyed(static_cast<WebContentsImpl*>(web_contents)); |
+ virtual void WebContentsDestroyed() OVERRIDE { |
+ owner_->OnWebContentsDestroyed( |
+ static_cast<WebContentsImpl*>(web_contents())); |
} |
private: |
@@ -419,7 +420,11 @@ WebContentsImpl::~WebContentsImpl() { |
FOR_EACH_OBSERVER(WebContentsObserver, |
observers_, |
- WebContentsImplDestroyed()); |
+ WebContentsDestroyed()); |
+ |
+ FOR_EACH_OBSERVER(WebContentsObserver, |
+ observers_, |
+ WebContentsDestroyedPrivate()); |
SetDelegate(NULL); |