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

Unified Diff: chrome/browser/ui/collected_cookies_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
Index: chrome/browser/ui/collected_cookies_infobar_delegate.cc
diff --git a/chrome/browser/ui/collected_cookies_infobar_delegate.cc b/chrome/browser/ui/collected_cookies_infobar_delegate.cc
index 241c0fae50b1e40158919eb6c4387e295b4a1ec0..e106cc72ea4cc589a88a3b5eef0ba9106a1b5cb1 100644
--- a/chrome/browser/ui/collected_cookies_infobar_delegate.cc
+++ b/chrome/browser/ui/collected_cookies_infobar_delegate.cc
@@ -10,7 +10,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 CollectedCookiesInfoBarDelegate::Create(InfoBarService* infobar_service) {
@@ -23,9 +22,8 @@ CollectedCookiesInfoBarDelegate::CollectedCookiesInfoBarDelegate(
: ConfirmInfoBarDelegate(infobar_service) {
}
-gfx::Image* CollectedCookiesInfoBarDelegate::GetIcon() const {
- return &ResourceBundle::GetSharedInstance().GetNativeImageNamed(
- IDR_INFOBAR_COOKIE);
+int CollectedCookiesInfoBarDelegate::GetIconID() const {
+ return IDR_INFOBAR_COOKIE;
}
InfoBarDelegate::Type CollectedCookiesInfoBarDelegate::GetInfoBarType() const {

Powered by Google App Engine
This is Rietveld 408576698