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

Unified Diff: components/infobars/core/simple_alert_infobar_delegate.cc

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: components/infobars/core/simple_alert_infobar_delegate.cc
diff --git a/components/infobars/core/simple_alert_infobar_delegate.cc b/components/infobars/core/simple_alert_infobar_delegate.cc
index 9262d05e54cb1c5535d8309e204b9bb5278f0929..a080dce3f15b85c617d2325be9f627e25a630ea6 100644
--- a/components/infobars/core/simple_alert_infobar_delegate.cc
+++ b/components/infobars/core/simple_alert_infobar_delegate.cc
@@ -32,6 +32,11 @@ SimpleAlertInfoBarDelegate::SimpleAlertInfoBarDelegate(
SimpleAlertInfoBarDelegate::~SimpleAlertInfoBarDelegate() {
}
+bool SimpleAlertInfoBarDelegate::ShouldExpireInternal(
+ const NavigationDetails& details) const {
+ return auto_expire_ && ConfirmInfoBarDelegate::ShouldExpireInternal(details);
+}
+
int SimpleAlertInfoBarDelegate::GetIconID() const {
return icon_id_;
}
@@ -43,8 +48,3 @@ base::string16 SimpleAlertInfoBarDelegate::GetMessageText() const {
int SimpleAlertInfoBarDelegate::GetButtons() const {
return BUTTON_NONE;
}
-
-bool SimpleAlertInfoBarDelegate::ShouldExpireInternal(
- const NavigationDetails& details) const {
- return auto_expire_ && ConfirmInfoBarDelegate::ShouldExpireInternal(details);
-}

Powered by Google App Engine
This is Rietveld 408576698