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

Unified Diff: chrome/browser/ui/cocoa/infobars/infobar_controller.mm

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/tab_contents/confirm_infobar_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/infobars/infobar_controller.mm
diff --git a/chrome/browser/ui/cocoa/infobars/infobar_controller.mm b/chrome/browser/ui/cocoa/infobars/infobar_controller.mm
index c81a3635a3c36d10e05ffff98d066efd89c39fad..e7825bbb09a93fb0beecbc7136c8f2590a9ee872 100644
--- a/chrome/browser/ui/cocoa/infobars/infobar_controller.mm
+++ b/chrome/browser/ui/cocoa/infobars/infobar_controller.mm
@@ -236,10 +236,9 @@ const float kAnimateCloseDuration = 0.12;
if (!infoBarClosing_)
return;
- // Notify the delegate that the infobar was closed. The delegate will delete
- // itself as a result of InfoBarClosed(), so we null out its pointer.
+ // Notify the delegate that the infobar was closed.
if (delegate_) {
- delegate_->InfoBarClosed();
+ delete delegate_;
delegate_ = NULL;
}
« no previous file with comments | « chrome/browser/tab_contents/confirm_infobar_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698