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

Unified Diff: chrome/browser/infobars/infobar_tab_helper.cc

Issue 8698016: Remove InfoBarDelegate::InfoBarClosed(), delete InfoBars directly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cancelling changes. Created 9 years, 1 month 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
« no previous file with comments | « chrome/browser/infobars/infobar_delegate.cc ('k') | chrome/browser/tab_contents/confirm_infobar_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/infobars/infobar_tab_helper.cc
diff --git a/chrome/browser/infobars/infobar_tab_helper.cc b/chrome/browser/infobars/infobar_tab_helper.cc
index 000bfb45a9e26d47a89fc0fc923007a3c59f14e2..58f8223f8f1e3b944b59729e2f7bdf58e29847fa 100644
--- a/chrome/browser/infobars/infobar_tab_helper.cc
+++ b/chrome/browser/infobars/infobar_tab_helper.cc
@@ -30,13 +30,13 @@ InfoBarTabHelper::~InfoBarTabHelper() {
void InfoBarTabHelper::AddInfoBar(InfoBarDelegate* delegate) {
if (!infobars_enabled_) {
- delegate->InfoBarClosed();
+ delete delegate;
return;
}
for (size_t i = 0; i < infobars_.size(); ++i) {
if (GetInfoBarDelegateAt(i)->EqualsDelegate(delegate)) {
- delegate->InfoBarClosed();
+ delete delegate;
return;
}
}
« no previous file with comments | « chrome/browser/infobars/infobar_delegate.cc ('k') | chrome/browser/tab_contents/confirm_infobar_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698