Index: chrome/browser/ui/cocoa/keystone_infobar.mm |
diff --git a/chrome/browser/ui/cocoa/keystone_infobar.mm b/chrome/browser/ui/cocoa/keystone_infobar.mm |
index 81700f4d901b86375ac769c8a1e55fe9d3ba64b3..653d07a5ddeee649fe0c3892cbc72f03c721ae1e 100644 |
--- a/chrome/browser/ui/cocoa/keystone_infobar.mm |
+++ b/chrome/browser/ui/cocoa/keystone_infobar.mm |
@@ -12,6 +12,7 @@ |
#include "base/message_loop.h" |
#include "base/task.h" |
#include "chrome/browser/first_run/first_run.h" |
+#include "chrome/browser/infobars/infobar_tab_helper.h" |
#import "chrome/browser/mac/keystone_glue.h" |
#include "chrome/browser/prefs/pref_service.h" |
#include "chrome/browser/profiles/profile.h" |
@@ -190,9 +191,9 @@ bool KeystonePromotionInfoBarDelegate::Cancel() { |
// Only show if no other info bars are showing, because that's how the |
// default browser info bar works. |
- if (wrapper && wrapper->infobar_count() == 0) { |
- wrapper->AddInfoBar(new KeystonePromotionInfoBarDelegate( |
- wrapper->tab_contents())); |
+ if (wrapper && wrapper->infobar_tab_helper()->infobar_count() == 0) { |
+ wrapper->infobar_tab_helper()->AddInfoBar( |
+ new KeystonePromotionInfoBarDelegate(wrapper->tab_contents())); |
} |
} |
} |