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

Unified Diff: chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.mm

Issue 11644059: Change infobar creation to use a public static Create() method on the infobar delegate classes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 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/content_settings/collected_cookies_mac.mm
===================================================================
--- chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.mm (revision 175396)
+++ chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.mm (working copy)
@@ -214,10 +214,8 @@
- (void)windowWillClose:(NSNotification*)notif {
if (contentSettingsChanged_) {
- InfoBarService* infobarService =
- InfoBarService::FromWebContents(webContents_);
- infobarService->AddInfoBar(
- new CollectedCookiesInfoBarDelegate(infobarService));
+ CollectedCookiesInfoBarDelegate::Create(
+ InfoBarService::FromWebContents(webContents_));
}
[allowedOutlineView_ setDelegate:nil];
[blockedOutlineView_ setDelegate:nil];
« no previous file with comments | « chrome/browser/ui/chrome_select_file_policy.cc ('k') | chrome/browser/ui/cocoa/infobars/infobar_container_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698