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

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

Issue 10830353: Introduce InfoBarTabService API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments, merge to LKGR Created 8 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_delegate.mm
diff --git a/chrome/browser/ui/cocoa/keystone_infobar_delegate.mm b/chrome/browser/ui/cocoa/keystone_infobar_delegate.mm
index 7345b25ae065131eb8821d2461070bd4fe051851..e5763cd7b0f4fccdd86a3d4bf0e8d866c0ee8ccb 100644
--- a/chrome/browser/ui/cocoa/keystone_infobar_delegate.mm
+++ b/chrome/browser/ui/cocoa/keystone_infobar_delegate.mm
@@ -39,7 +39,7 @@ namespace {
class KeystonePromotionInfoBarDelegate : public ConfirmInfoBarDelegate {
public:
- KeystonePromotionInfoBarDelegate(InfoBarTabHelper* infobar_helper,
+ KeystonePromotionInfoBarDelegate(InfoBarTabService* infobar_service,
PrefService* prefs);
private:
@@ -71,9 +71,9 @@ class KeystonePromotionInfoBarDelegate : public ConfirmInfoBarDelegate {
};
KeystonePromotionInfoBarDelegate::KeystonePromotionInfoBarDelegate(
- InfoBarTabHelper* infobar_helper,
+ InfoBarTabService* infobar_service,
PrefService* prefs)
- : ConfirmInfoBarDelegate(infobar_helper),
+ : ConfirmInfoBarDelegate(infobar_service),
prefs_(prefs),
can_expire_(false),
ALLOW_THIS_IN_INITIALIZER_LIST(weak_ptr_factory_(this)) {
@@ -198,7 +198,7 @@ bool KeystonePromotionInfoBarDelegate::ShouldExpireInternal(
// default browser info bar works.
if (tabContents) {
InfoBarTabHelper* infobar_helper = tabContents->infobar_tab_helper();
- if (infobar_helper->infobar_count() == 0) {
+ if (infobar_helper->GetInfoBarCount() == 0) {
infobar_helper->AddInfoBar(
new KeystonePromotionInfoBarDelegate(
infobar_helper,
« no previous file with comments | « chrome/browser/ui/cocoa/infobars/translate_infobar_unittest.mm ('k') | chrome/browser/ui/collected_cookies_infobar_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698