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

Unified Diff: chrome/browser/extensions/theme_installed_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: chrome/browser/extensions/theme_installed_infobar_delegate.cc
diff --git a/chrome/browser/extensions/theme_installed_infobar_delegate.cc b/chrome/browser/extensions/theme_installed_infobar_delegate.cc
index 7731563438de64cbd89c1345165ef87416ae0cc1..0bc316c02106c1cb6978fecb8e2360e24d12111d 100644
--- a/chrome/browser/extensions/theme_installed_infobar_delegate.cc
+++ b/chrome/browser/extensions/theme_installed_infobar_delegate.cc
@@ -103,14 +103,8 @@ ThemeInstalledInfoBarDelegate::~ThemeInstalledInfoBarDelegate() {
theme_service_->OnInfobarDestroyed();
}
-int ThemeInstalledInfoBarDelegate::GetIconID() const {
- // TODO(aa): Reply with the theme's icon, but this requires reading it
- // asynchronously from disk.
- return IDR_INFOBAR_THEME;
-}
-
-infobars::InfoBarDelegate::Type ThemeInstalledInfoBarDelegate::GetInfoBarType()
- const {
+infobars::InfoBarDelegate::Type
+ThemeInstalledInfoBarDelegate::GetInfoBarType() const {
return PAGE_ACTION_TYPE;
}
@@ -119,6 +113,12 @@ ThemeInstalledInfoBarDelegate*
return this;
}
+int ThemeInstalledInfoBarDelegate::GetIconID() const {
+ // TODO(aa): Reply with the theme's icon, but this requires reading it
+ // asynchronously from disk.
+ return IDR_INFOBAR_THEME;
+}
+
base::string16 ThemeInstalledInfoBarDelegate::GetMessageText() const {
return l10n_util::GetStringFUTF16(IDS_THEME_INSTALL_INFOBAR_LABEL,
base::UTF8ToUTF16(name_));

Powered by Google App Engine
This is Rietveld 408576698