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

Unified Diff: chrome/browser/ui/cocoa/keystone_infobar_delegate.mm

Issue 812823002: Remove dependency of infobars component on the embedder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix android compilation Created 6 years 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/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(

Powered by Google App Engine
This is Rietveld 408576698