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

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

Issue 10830353: Introduce InfoBarTabService API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments Created 8 years, 4 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_controller.mm
diff --git a/chrome/browser/ui/cocoa/infobars/infobar_controller.mm b/chrome/browser/ui/cocoa/infobars/infobar_controller.mm
index d7b584d0f57e290c9c8991c4c6a2f35051c39d3a..aa8fd060e7268bff592dc699132352ada61b3f12 100644
--- a/chrome/browser/ui/cocoa/infobars/infobar_controller.mm
+++ b/chrome/browser/ui/cocoa/infobars/infobar_controller.mm
@@ -451,14 +451,16 @@ const float kAnimateCloseDuration = 0.12;
//////////////////////////////////////////////////////////////////////////
// CreateInfoBar() implementations
-InfoBar* LinkInfoBarDelegate::CreateInfoBar(InfoBarTabHelper* owner) {
+InfoBar* LinkInfoBarDelegate::CreateInfoBar(InfoBarTabService* owner) {
+ InfoBarTabHelper* helper = (InfoBarTabHelper*)owner;
LinkInfoBarController* controller =
- [[LinkInfoBarController alloc] initWithDelegate:this owner:owner];
+ [[LinkInfoBarController alloc] initWithDelegate:this owner:helper];
return new InfoBar(controller, this);
}
-InfoBar* ConfirmInfoBarDelegate::CreateInfoBar(InfoBarTabHelper* owner) {
+InfoBar* ConfirmInfoBarDelegate::CreateInfoBar(InfoBarTabService* owner) {
+ InfoBarTabHelper* helper = (InfoBarTabHelper*)owner;
ConfirmInfoBarController* controller =
- [[ConfirmInfoBarController alloc] initWithDelegate:this owner:owner];
+ [[ConfirmInfoBarController alloc] initWithDelegate:this owner:helper];
return new InfoBar(controller, this);
}

Powered by Google App Engine
This is Rietveld 408576698