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

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

Issue 22694006: Infobar system refactor. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 2 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/infobar_cocoa.mm
===================================================================
--- chrome/browser/ui/cocoa/infobars/infobar_cocoa.mm (revision 226624)
+++ chrome/browser/ui/cocoa/infobars/infobar_cocoa.mm (working copy)
@@ -11,17 +11,13 @@
const int InfoBar::kMaximumArrowTargetHalfWidth = 14;
const int InfoBar::kDefaultBarTargetHeight = 36;
-InfoBarCocoa::InfoBarCocoa(InfoBarService* owner, InfoBarDelegate* delegate)
- : InfoBar(owner, delegate) {
+InfoBarCocoa::InfoBarCocoa(scoped_ptr<InfoBarDelegate> delegate)
+ : InfoBar(delegate.Pass()) {
}
InfoBarCocoa::~InfoBarCocoa() {
}
-void InfoBarCocoa::RemoveSelfCocoa() {
- RemoveSelf();
-}
-
InfoBarService* InfoBarCocoa::OwnerCocoa() {
return owner();
}

Powered by Google App Engine
This is Rietveld 408576698