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

Unified Diff: chrome/browser/password_manager/password_manager_delegate_impl.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/password_manager/password_manager_delegate_impl.cc
diff --git a/chrome/browser/password_manager/password_manager_delegate_impl.cc b/chrome/browser/password_manager/password_manager_delegate_impl.cc
index 1b74b3747a924e8c6ca7a80f1c38ff7ea49a16a9..5cb05abaac55606fd9735caba19392e2e5eb7d28 100644
--- a/chrome/browser/password_manager/password_manager_delegate_impl.cc
+++ b/chrome/browser/password_manager/password_manager_delegate_impl.cc
@@ -57,7 +57,7 @@ class SavePasswordInfoBarDelegate : public ConfirmInfoBarDelegate {
virtual ~SavePasswordInfoBarDelegate();
// ConfirmInfoBarDelegate
- virtual gfx::Image* GetIcon() const OVERRIDE;
+ virtual int GetIconID() const OVERRIDE;
virtual Type GetInfoBarType() const OVERRIDE;
virtual string16 GetMessageText() const OVERRIDE;
virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE;
@@ -115,9 +115,8 @@ SavePasswordInfoBarDelegate::~SavePasswordInfoBarDelegate() {
infobar_response_, NUM_RESPONSE_TYPES);
}
-gfx::Image* SavePasswordInfoBarDelegate::GetIcon() const {
- return &ResourceBundle::GetSharedInstance().GetNativeImageNamed(
- IDR_INFOBAR_SAVE_PASSWORD);
+int SavePasswordInfoBarDelegate::GetIconID() const {
+ return IDR_INFOBAR_SAVE_PASSWORD;
}
InfoBarDelegate::Type SavePasswordInfoBarDelegate::GetInfoBarType() const {

Powered by Google App Engine
This is Rietveld 408576698