Chromium Code Reviews| Index: chrome/browser/ui/panels/panel_host.cc |
| diff --git a/chrome/browser/ui/panels/panel_host.cc b/chrome/browser/ui/panels/panel_host.cc |
| index a8d7704cc5f8973e5e8e1caa10c491bc7d9ea220..f714045052e6e15f01bb23619c37d9b692d2c548 100644 |
| --- a/chrome/browser/ui/panels/panel_host.cc |
| +++ b/chrome/browser/ui/panels/panel_host.cc |
| @@ -203,6 +203,8 @@ void PanelHost::RenderViewGone(base::TerminationStatus status) { |
| } |
| void PanelHost::WebContentsDestroyed(content::WebContents* web_contents) { |
| + DCHECK(web_contents == web_contents_.get()); |
| + web_contents_.reset(); |
|
sky
2012/10/11 01:03:54
WebContentsDestroyed is invoked from ~WebContents
|
| // Close the panel after we return to the message loop (not immediately, |
| // otherwise, it may destroy this object before the stack has a chance |
| // to cleanly unwind.) |