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

Unified Diff: chrome/browser/ui/hung_plugin_tab_helper.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/ui/hung_plugin_tab_helper.cc
diff --git a/chrome/browser/ui/hung_plugin_tab_helper.cc b/chrome/browser/ui/hung_plugin_tab_helper.cc
index 99ff808c25dba26c651a14f7a5d101a7f158bf06..4a16b96b18c079ede354600c2b31bb373295f59b 100644
--- a/chrome/browser/ui/hung_plugin_tab_helper.cc
+++ b/chrome/browser/ui/hung_plugin_tab_helper.cc
@@ -30,6 +30,7 @@
#include "content/public/common/process_type.h"
#include "content/public/common/result_codes.h"
#include "ui/base/l10n/l10n_util.h"
+#include "ui/gfx/vector_icons_public.h"
#if defined(OS_WIN)
#include "base/win/scoped_handle.h"
@@ -148,7 +149,7 @@ class HungPluginInfoBarDelegate : 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;
base::string16 GetButtonLabel(InfoBarButton button) const override;
@@ -193,8 +194,8 @@ HungPluginInfoBarDelegate::GetIdentifier() const {
return HUNG_PLUGIN_INFOBAR_DELEGATE;
}
-int HungPluginInfoBarDelegate::GetIconId() const {
- return IDR_INFOBAR_PLUGIN_CRASHED;
+gfx::VectorIconId HungPluginInfoBarDelegate::GetVectorIconId() const {
+ return gfx::VectorIconId::EXTENSION_CRASHED;
}
base::string16 HungPluginInfoBarDelegate::GetMessageText() const {
« no previous file with comments | « chrome/browser/ui/collected_cookies_infobar_delegate.cc ('k') | chrome/browser/ui/startup/default_browser_infobar_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698