summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/tab_contents')
-rw-r--r--chrome/browser/tab_contents/tab_contents.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc
index 359a6c9..d6632bb 100644
--- a/chrome/browser/tab_contents/tab_contents.cc
+++ b/chrome/browser/tab_contents/tab_contents.cc
@@ -2127,6 +2127,10 @@ void TabContents::RenderViewGone(RenderViewHost* rvh) {
NotifyDisconnected();
SetIsCrashed(true);
+ // Remove all infobars.
+ for (int i = 0; i < infobar_delegate_count(); ++i)
+ RemoveInfoBar(GetInfoBarDelegateAt(i));
+
// Tell the view that we've crashed so it can prepare the sad tab page.
// Only do this if we're not in browser shutdown, so that TabContents
// objects that are not in a browser (e.g., HTML dialogs) and thus are