| 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_; }
|
|
|