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

Unified Diff: chrome/browser/ui/cocoa/infobars/mock_link_infobar_delegate.cc

Issue 6926001: Replace the virtual InfoBarDelegate::InfoBarClosed() function with a non-virtual one. This is a ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 months 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
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;
« no previous file with comments | « chrome/browser/ui/cocoa/infobars/mock_link_infobar_delegate.h ('k') | chrome/browser/ui/cocoa/keystone_infobar.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698