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

Unified Diff: components/infobars/core/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/infobar_delegate.cc
diff --git a/components/infobars/core/infobar_delegate.cc b/components/infobars/core/infobar_delegate.cc
index 65646f93618dc62b74ac26b77ff1b272d33eaf03..1a47609670adac139593910e9b0218d91d6ef5d0 100644
--- a/components/infobars/core/infobar_delegate.cc
+++ b/components/infobars/core/infobar_delegate.cc
@@ -36,10 +36,6 @@ bool InfoBarDelegate::ShouldExpire(const NavigationDetails& details) const {
void InfoBarDelegate::InfoBarDismissed() {
}
-int InfoBarDelegate::GetIconID() const {
- return kNoIconID;
-}
-
InfoBarDelegate::Type InfoBarDelegate::GetInfoBarType() const {
return WARNING_TYPE;
}
@@ -88,6 +84,10 @@ ThemeInstalledInfoBarDelegate*
return nullptr;
}
+ThreeDAPIInfoBarDelegate* InfoBarDelegate::AsThreeDAPIInfoBarDelegate() {
+ return nullptr;
+}
+
translate::TranslateInfoBarDelegate*
InfoBarDelegate::AsTranslateInfoBarDelegate() {
return nullptr;
@@ -113,4 +113,8 @@ bool InfoBarDelegate::ShouldExpireInternal(
return (contents_unique_id_ != details.entry_id) || details.is_reload;
}
+int InfoBarDelegate::GetIconID() const {
+ return kNoIconID;
+}
+
} // namespace infobars

Powered by Google App Engine
This is Rietveld 408576698