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

Unified Diff: chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.cc

Issue 15067008: [InfoBar] Add InfoBarDelegate::GetIconID() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renaming back to GetIcon() 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/omnibox/alternate_nav_infobar_delegate.cc
diff --git a/chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.cc b/chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.cc
index 64ce52041cf16a0046e53eacd758b0076cae277b..d36594a0e85abc6a2853569fc2ef6a283189182e 100644
--- a/chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.cc
+++ b/chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.cc
@@ -56,9 +56,8 @@ bool AlternateNavInfoBarDelegate::LinkClicked(
return true;
}
-gfx::Image* AlternateNavInfoBarDelegate::GetIcon() const {
- return &ui::ResourceBundle::GetSharedInstance().GetNativeImageNamed(
- IDR_INFOBAR_ALT_NAV_URL);
+int AlternateNavInfoBarDelegate::GetIconID() const {
+ return IDR_INFOBAR_ALT_NAV_URL;
}
InfoBarDelegate::Type AlternateNavInfoBarDelegate::GetInfoBarType() const {

Powered by Google App Engine
This is Rietveld 408576698