Chromium Code Reviews

Unified Diff: chrome/browser/download/download_request_infobar_delegate_unittest.cc

Issue 8698016: Remove InfoBarDelegate::InfoBarClosed(), delete InfoBars directly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: chrome/browser/download/download_request_infobar_delegate_unittest.cc
diff --git a/chrome/browser/download/download_request_infobar_delegate_unittest.cc b/chrome/browser/download/download_request_infobar_delegate_unittest.cc
index fdaab1add50e172f286d69a3017fe54e5c959827..219ed09e74ccf1658085417794943c9272202701 100644
--- a/chrome/browser/download/download_request_infobar_delegate_unittest.cc
+++ b/chrome/browser/download/download_request_infobar_delegate_unittest.cc
@@ -22,12 +22,7 @@ class MockTabDownloadState : public DownloadRequestLimiter::TabDownloadState {
return infobar_->AsConfirmInfoBarDelegate();
}
void close_infobar() {
- // TODO(pkasting): Right now InfoBarDelegates delete themselves via
- // InfoBarClosed(); once InfoBars own their delegates, this can become a
- // simple reset() call and ~MockTabDownloadState() will no longer need to
- // call it.
- if (infobar_ != NULL)
- infobar_.release()->InfoBarClosed();
+ infobar_.reset(NULL);
}
bool responded() const { return responded_; }
bool accepted() const { return accepted_; }

Powered by Google App Engine