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

Unified Diff: chrome/browser/plugins/plugin_observer.cc

Issue 2382563003: Remove some more desktop infobar PNGs. (Closed)
Patch Set: pkasting review Created 4 years, 2 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/plugins/plugin_observer.cc
diff --git a/chrome/browser/plugins/plugin_observer.cc b/chrome/browser/plugins/plugin_observer.cc
index a5a31277f3b975bab0f13f9aa6e77aa983e83352..80e0447e02c67c6c96a412b29e1a474f21999bae 100644
--- a/chrome/browser/plugins/plugin_observer.cc
+++ b/chrome/browser/plugins/plugin_observer.cc
@@ -140,7 +140,6 @@ class ReloadPluginInfoBarDelegate : public ConfirmInfoBarDelegate {
// ConfirmInfobarDelegate:
infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override;
- int GetIconId() const override;
gfx::VectorIconId GetVectorIconId() const override;
base::string16 GetMessageText() const override;
int GetButtons() const override;
@@ -174,16 +173,8 @@ ReloadPluginInfoBarDelegate::GetIdentifier() const {
return RELOAD_PLUGIN_INFOBAR_DELEGATE;
}
-int ReloadPluginInfoBarDelegate::GetIconId() const {
- return IDR_INFOBAR_PLUGIN_CRASHED;
-}
-
gfx::VectorIconId ReloadPluginInfoBarDelegate::GetVectorIconId() const {
-#if !defined(OS_MACOSX) && !defined(OS_ANDROID)
return gfx::VectorIconId::EXTENSION_CRASHED;
-#else
- return gfx::VectorIconId::VECTOR_ICON_NONE;
-#endif
}
base::string16 ReloadPluginInfoBarDelegate::GetMessageText() const {
@@ -467,13 +458,8 @@ void PluginObserver::OnCouldNotLoadPlugin(const base::FilePath& plugin_path) {
PluginService::GetInstance()->GetPluginDisplayNameByPath(plugin_path);
SimpleAlertInfoBarDelegate::Create(
InfoBarService::FromWebContents(web_contents()),
- infobars::InfoBarDelegate::PLUGIN_OBSERVER,
- IDR_INFOBAR_PLUGIN_CRASHED,
-#if !defined(OS_MACOSX) && !defined(OS_ANDROID)
+ infobars::InfoBarDelegate::PLUGIN_OBSERVER, 0,
gfx::VectorIconId::EXTENSION_CRASHED,
-#else
- gfx::VectorIconId::VECTOR_ICON_NONE,
-#endif
l10n_util::GetStringFUTF16(IDS_PLUGIN_INITIALIZATION_ERROR_PROMPT,
plugin_name),
true);

Powered by Google App Engine
This is Rietveld 408576698