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

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

Issue 7810002: Move infobar handling to a tab helper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update Created 9 years, 4 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/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()));
}
}
}

Powered by Google App Engine
This is Rietveld 408576698