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

Unified Diff: chrome/browser/infobars/simple_alert_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/infobars/simple_alert_infobar_delegate.cc
diff --git a/chrome/browser/infobars/simple_alert_infobar_delegate.cc b/chrome/browser/infobars/simple_alert_infobar_delegate.cc
index 85b2095eb8784dde85a49532de3534cf69c1be64..6e8b82cf19533ac4d04da266e34ed0d6bd8766bc 100644
--- a/chrome/browser/infobars/simple_alert_infobar_delegate.cc
+++ b/chrome/browser/infobars/simple_alert_infobar_delegate.cc
@@ -9,21 +9,21 @@
// static
void SimpleAlertInfoBarDelegate::Create(InfoBarService* infobar_service,
- gfx::Image* icon,
+ int icon_id,
const string16& message,
bool auto_expire) {
infobar_service->AddInfoBar(scoped_ptr<InfoBarDelegate>(
- new SimpleAlertInfoBarDelegate(infobar_service, icon, message,
+ new SimpleAlertInfoBarDelegate(infobar_service, icon_id, message,
auto_expire)));
}
SimpleAlertInfoBarDelegate::SimpleAlertInfoBarDelegate(
InfoBarService* infobar_service,
- gfx::Image* icon,
+ int icon_id,
const string16& message,
bool auto_expire)
: ConfirmInfoBarDelegate(infobar_service),
- icon_(icon),
+ icon_id_(icon_id),
message_(message),
auto_expire_(auto_expire) {
}
@@ -31,8 +31,8 @@ SimpleAlertInfoBarDelegate::SimpleAlertInfoBarDelegate(
SimpleAlertInfoBarDelegate::~SimpleAlertInfoBarDelegate() {
}
-gfx::Image* SimpleAlertInfoBarDelegate::GetIcon() const {
- return icon_;
+int SimpleAlertInfoBarDelegate::GetIconID() const {
+ return icon_id_;
}
string16 SimpleAlertInfoBarDelegate::GetMessageText() const {

Powered by Google App Engine
This is Rietveld 408576698