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

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..fa0188e043d4a171512a8aa7967e45c044395384 100644
--- a/components/infobars/core/simple_alert_infobar_delegate.cc
+++ b/components/infobars/core/simple_alert_infobar_delegate.cc
@@ -36,6 +36,11 @@ int SimpleAlertInfoBarDelegate::GetIconID() const {
return icon_id_;
}
+bool SimpleAlertInfoBarDelegate::ShouldExpireInternal(
+ const NavigationDetails& details) const {
+ return auto_expire_ && ConfirmInfoBarDelegate::ShouldExpireInternal(details);
+}
+
base::string16 SimpleAlertInfoBarDelegate::GetMessageText() const {
return message_;
}
@@ -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