Index: chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.mm |
diff --git a/chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.mm b/chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.mm |
index 34fa8f91bf91bf55ad133671d29cbf4db844a31f..35b43f154406e166ce7975141a71127aa471ab04 100644 |
--- a/chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.mm |
+++ b/chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.mm |
@@ -10,6 +10,7 @@ |
#include "base/sys_string_conversions.h" |
#include "chrome/browser/content_settings/host_content_settings_map.h" |
#include "chrome/browser/content_settings/tab_specific_content_settings.h" |
+#include "chrome/browser/infobars/infobar_tab_helper.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/ui/cocoa/constrained_window_mac.h" |
#import "chrome/browser/ui/cocoa/content_settings/cookie_details_view_controller.h" |
@@ -219,7 +220,8 @@ void CollectedCookiesMac::OnSheetDidEnd(NSWindow* sheet) { |
- (void)windowWillClose:(NSNotification*)notif { |
if (contentSettingsChanged_) { |
TabContentsWrapper::GetCurrentWrapperForContents(tabContents_)-> |
- AddInfoBar(new CollectedCookiesInfoBarDelegate(tabContents_)); |
+ infobar_tab_helper()->AddInfoBar( |
+ new CollectedCookiesInfoBarDelegate(tabContents_)); |
} |
[allowedOutlineView_ setDelegate:nil]; |
[blockedOutlineView_ setDelegate:nil]; |