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

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

Issue 1520543004: Add method for identifying different InfoBars (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit again Created 5 years 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 012767892664850987510207573a282e32c4b71e..a400f0096cf095733af7b0c56dcf477c87aa2852 100644
--- a/chrome/browser/ui/cocoa/keystone_infobar_delegate.mm
+++ b/chrome/browser/ui/cocoa/keystone_infobar_delegate.mm
@@ -52,6 +52,7 @@ class KeystonePromotionInfoBarDelegate : public ConfirmInfoBarDelegate {
void SetCanExpire() { can_expire_ = true; }
// ConfirmInfoBarDelegate
+ infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override;
int GetIconId() const override;
bool ShouldExpire(const NavigationDetails& details) const override;
base::string16 GetMessageText() const override;
@@ -105,6 +106,11 @@ KeystonePromotionInfoBarDelegate::KeystonePromotionInfoBarDelegate(
KeystonePromotionInfoBarDelegate::~KeystonePromotionInfoBarDelegate() {
}
+infobars::InfoBarDelegate::InfoBarIdentifier
+KeystonePromotionInfoBarDelegate::GetIdentifier() const {
+ return KEYSTONE_PROMOTION_INFOBAR_DELEGATE;
+}
+
int KeystonePromotionInfoBarDelegate::GetIconId() const {
return IDR_PRODUCT_LOGO_32;
}

Powered by Google App Engine
This is Rietveld 408576698