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

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

Issue 922953002: Minor infobar cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resync Created 5 years, 10 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 5e3364ef73cb2ad096015910819672676466240a..ca95f75ff1906479ff067550ee45bee075cb05eb 100644
--- a/chrome/browser/ui/cocoa/keystone_infobar_delegate.mm
+++ b/chrome/browser/ui/cocoa/keystone_infobar_delegate.mm
@@ -52,11 +52,11 @@ class KeystonePromotionInfoBarDelegate : public ConfirmInfoBarDelegate {
// ConfirmInfoBarDelegate
int GetIconID() const override;
+ bool ShouldExpireInternal(const NavigationDetails& details) const override;
base::string16 GetMessageText() const override;
base::string16 GetButtonLabel(InfoBarButton button) const override;
bool Accept() override;
bool Cancel() override;
- bool ShouldExpireInternal(const NavigationDetails& details) const override;
// The prefs to use.
PrefService* prefs_; // weak
@@ -108,6 +108,11 @@ int KeystonePromotionInfoBarDelegate::GetIconID() const {
return IDR_PRODUCT_LOGO_32;
}
+bool KeystonePromotionInfoBarDelegate::ShouldExpireInternal(
+ const NavigationDetails& details) const {
+ return can_expire_;
+}
+
base::string16 KeystonePromotionInfoBarDelegate::GetMessageText() const {
return l10n_util::GetStringFUTF16(IDS_PROMOTE_INFOBAR_TEXT,
l10n_util::GetStringUTF16(IDS_PRODUCT_NAME));
@@ -129,11 +134,6 @@ bool KeystonePromotionInfoBarDelegate::Cancel() {
return true;
}
-bool KeystonePromotionInfoBarDelegate::ShouldExpireInternal(
- const NavigationDetails& details) const {
- return can_expire_;
-}
-
} // namespace
« no previous file with comments | « chrome/browser/ui/auto_login_infobar_delegate.cc ('k') | chrome/browser/ui/collected_cookies_infobar_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698