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

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

Issue 15067008: [InfoBar] Add InfoBarDelegate::GetIconID() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit fixes redux Created 7 years, 7 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
« no previous file with comments | « chrome/browser/plugins/plugin_infobar_delegates.h ('k') | chrome/browser/plugins/plugin_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/plugins/plugin_infobar_delegates.cc
diff --git a/chrome/browser/plugins/plugin_infobar_delegates.cc b/chrome/browser/plugins/plugin_infobar_delegates.cc
index 3d9541f9851876677fa9ba59373d4da99706e401..96188abd1c742ee3979e08a3e97f6e08ff8afc23 100644
--- a/chrome/browser/plugins/plugin_infobar_delegates.cc
+++ b/chrome/browser/plugins/plugin_infobar_delegates.cc
@@ -22,7 +22,6 @@
#include "grit/locale_settings.h"
#include "grit/theme_resources.h"
#include "ui/base/l10n/l10n_util.h"
-#include "ui/base/resource/resource_bundle.h"
#if defined(OS_WIN)
#include <shellapi.h>
@@ -74,9 +73,8 @@ void PluginInfoBarDelegate::LoadBlockedPlugins() {
}
}
-gfx::Image* PluginInfoBarDelegate::GetIcon() const {
- return &ResourceBundle::GetSharedInstance().GetNativeImageNamed(
- IDR_INFOBAR_PLUGIN_INSTALL);
+int PluginInfoBarDelegate::GetIconID() const {
+ return IDR_INFOBAR_PLUGIN_INSTALL;
}
string16 PluginInfoBarDelegate::GetLinkText() const {
@@ -391,9 +389,8 @@ PluginInstallerInfoBarDelegate::PluginInstallerInfoBarDelegate(
PluginInstallerInfoBarDelegate::~PluginInstallerInfoBarDelegate() {
}
-gfx::Image* PluginInstallerInfoBarDelegate::GetIcon() const {
- return &ResourceBundle::GetSharedInstance().GetNativeImageNamed(
- IDR_INFOBAR_PLUGIN_INSTALL);
+int PluginInstallerInfoBarDelegate::GetIconID() const {
+ return IDR_INFOBAR_PLUGIN_INSTALL;
}
string16 PluginInstallerInfoBarDelegate::GetMessageText() const {
@@ -502,9 +499,8 @@ PluginMetroModeInfoBarDelegate::PluginMetroModeInfoBarDelegate(
PluginMetroModeInfoBarDelegate::~PluginMetroModeInfoBarDelegate() {
}
-gfx::Image* PluginMetroModeInfoBarDelegate::GetIcon() const {
- return &ResourceBundle::GetSharedInstance().GetNativeImageNamed(
- IDR_INFOBAR_PLUGIN_INSTALL);
+int PluginMetroModeInfoBarDelegate::GetIconID() const {
+ return IDR_INFOBAR_PLUGIN_INSTALL;
}
string16 PluginMetroModeInfoBarDelegate::GetMessageText() const {
« no previous file with comments | « chrome/browser/plugins/plugin_infobar_delegates.h ('k') | chrome/browser/plugins/plugin_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698