Index: chrome/browser/ui/cocoa/keystone_infobar_delegate.mm |
diff --git a/chrome/browser/ui/cocoa/keystone_infobar_delegate.mm b/chrome/browser/ui/cocoa/keystone_infobar_delegate.mm |
index afe31435e8d0aa847b7d5b435f69920e4fb3eab1..93864c0e0734d2b74ea64f8c9feadffbf247e2d9 100644 |
--- a/chrome/browser/ui/cocoa/keystone_infobar_delegate.mm |
+++ b/chrome/browser/ui/cocoa/keystone_infobar_delegate.mm |
@@ -81,7 +81,7 @@ void KeystonePromotionInfoBarDelegate::Create() { |
return; |
InfoBarService* infobar_service = |
InfoBarService::FromWebContents(webContents); |
- infobar_service->AddInfoBar(ConfirmInfoBarDelegate::CreateInfoBar( |
+ infobar_service->AddInfoBar(infobar_service->CreateConfirmInfoBar( |
scoped_ptr<ConfirmInfoBarDelegate>(new KeystonePromotionInfoBarDelegate( |
Profile::FromBrowserContext( |
webContents->GetBrowserContext())->GetPrefs())))); |