| Index: chrome/browser/ui/cocoa/infobars/mock_link_infobar_delegate.cc
|
| ===================================================================
|
| --- chrome/browser/ui/cocoa/infobars/mock_link_infobar_delegate.cc (revision 84141)
|
| +++ chrome/browser/ui/cocoa/infobars/mock_link_infobar_delegate.cc (working copy)
|
| @@ -10,23 +10,21 @@
|
| const char MockLinkInfoBarDelegate::kMessage[] = "MockLinkInfoBarMessage ";
|
| const char MockLinkInfoBarDelegate::kLink[] = "http://dev.chromium.org";
|
|
|
| -MockLinkInfoBarDelegate::MockLinkInfoBarDelegate()
|
| +MockLinkInfoBarDelegate::MockLinkInfoBarDelegate(Owner* owner)
|
| : LinkInfoBarDelegate(NULL),
|
| + owner_(owner),
|
| closes_on_action_(true),
|
| icon_accessed_(false),
|
| message_text_accessed_(false),
|
| link_text_accessed_(false),
|
| - link_clicked_(false),
|
| - closed_(false) {
|
| + link_clicked_(false) {
|
| }
|
|
|
| MockLinkInfoBarDelegate::~MockLinkInfoBarDelegate() {
|
| + if (owner_)
|
| + owner_->OnInfoBarDelegateClosed();
|
| }
|
|
|
| -void MockLinkInfoBarDelegate::InfoBarClosed() {
|
| - closed_ = true;
|
| -}
|
| -
|
| gfx::Image* MockLinkInfoBarDelegate::GetIcon() const {
|
| icon_accessed_ = true;
|
| return NULL;
|
|
|