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

Unified Diff: chrome/browser/ui/website_settings/website_settings_infobar_delegate.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/ui/website_settings/website_settings_infobar_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/website_settings/website_settings_infobar_delegate.cc
diff --git a/chrome/browser/ui/website_settings/website_settings_infobar_delegate.cc b/chrome/browser/ui/website_settings/website_settings_infobar_delegate.cc
index 2826c0aa803df5c4e0052cc90adf2da921fa0050..a960efc39c039f59f595d6cea1bb8b6f7e0daf1f 100644
--- a/chrome/browser/ui/website_settings/website_settings_infobar_delegate.cc
+++ b/chrome/browser/ui/website_settings/website_settings_infobar_delegate.cc
@@ -11,7 +11,6 @@
#include "grit/generated_resources.h"
#include "grit/theme_resources.h"
#include "ui/base/l10n/l10n_util.h"
-#include "ui/base/resource/resource_bundle.h"
// static
void WebsiteSettingsInfobarDelegate::Create(InfoBarService* infobar_service) {
@@ -24,9 +23,8 @@ WebsiteSettingsInfobarDelegate::WebsiteSettingsInfobarDelegate(
: ConfirmInfoBarDelegate(infobar_service) {
}
-gfx::Image* WebsiteSettingsInfobarDelegate::GetIcon() const {
- return &ResourceBundle::GetSharedInstance().GetNativeImageNamed(
- IDR_INFOBAR_ALT_NAV_URL);
+int WebsiteSettingsInfobarDelegate::GetIconID() const {
+ return IDR_INFOBAR_ALT_NAV_URL;
}
InfoBarDelegate::Type WebsiteSettingsInfobarDelegate::GetInfoBarType() const {
« no previous file with comments | « chrome/browser/ui/website_settings/website_settings_infobar_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698