Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2702)

Unified Diff: chrome/browser/tab_contents/infobar_container.cc

Issue 7294006: Try to bandaid leaks due to TabContentsWrapper not force-closing all InfoBarDelegates on shutdown... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/tab_contents/infobar_container.cc
===================================================================
--- chrome/browser/tab_contents/infobar_container.cc (revision 91189)
+++ chrome/browser/tab_contents/infobar_container.cc (working copy)
@@ -112,6 +112,11 @@
// this point |delegate_| may be shutting down, and it's at best unimportant
// and at worst disastrous to call that.
delegate_ = NULL;
+
+ // TODO(pkasting): Remove this once TabContentsWrapper calls CloseSoon().
+ for (size_t i = infobars_.size(); i > 0; --i)
+ infobars_[i]->CloseSoon();
+
ChangeTabContents(NULL);
}

Powered by Google App Engine
This is Rietveld 408576698