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..459517416b787bf3017c373bf29e09718a01c5cb 100644 |
--- a/chrome/browser/ui/cocoa/keystone_infobar_delegate.mm |
+++ b/chrome/browser/ui/cocoa/keystone_infobar_delegate.mm |
@@ -81,10 +81,10 @@ 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())))); |
+ Profile::FromBrowserContext(webContents->GetBrowserContext()) |
+ ->GetPrefs())))); |
Peter Kasting
2014/12/19 23:06:23
Nit: Old linebreaking here was better
sdefresne
2014/12/20 11:30:55
Sorry, I reformatted everything with clang-format
|
} |
KeystonePromotionInfoBarDelegate::KeystonePromotionInfoBarDelegate( |