Chromium Code Reviews| Index: chrome/browser/infobars/simple_alert_infobar_delegate.h |
| diff --git a/chrome/browser/infobars/simple_alert_infobar_delegate.h b/chrome/browser/infobars/simple_alert_infobar_delegate.h |
| index 73710b24fc19169327f4de2bf5c998dde278ecd6..4de2a6b73f0c9da8e36ab4d4033ed299e2453d83 100644 |
| --- a/chrome/browser/infobars/simple_alert_infobar_delegate.h |
| +++ b/chrome/browser/infobars/simple_alert_infobar_delegate.h |
| @@ -14,25 +14,25 @@ class SimpleAlertInfoBarDelegate : public ConfirmInfoBarDelegate { |
| public: |
| // Creates a simple alert delegate and adds it to |infobar_service|. |
| static void Create(InfoBarService* infobar_service, |
| - gfx::Image* icon, // May be NULL. |
| + int icon_id, // May be |kNoIconID| if no icon is shown. |
| const string16& message, |
| bool auto_expire); |
| private: |
| SimpleAlertInfoBarDelegate(InfoBarService* infobar_service, |
| - gfx::Image* icon, |
| + int icon_id, |
| const string16& message, |
| bool auto_expire); |
| virtual ~SimpleAlertInfoBarDelegate(); |
| // ConfirmInfoBarDelegate: |
| - virtual gfx::Image* GetIcon() const OVERRIDE; |
| + virtual int GetIconID() const OVERRIDE; |
| virtual string16 GetMessageText() const OVERRIDE; |
| virtual int GetButtons() const OVERRIDE; |
| virtual bool ShouldExpireInternal( |
| const content::LoadCommittedDetails& details) const OVERRIDE; |
| - gfx::Image* icon_; |
| + int icon_id_; |
|
sky
2013/05/15 20:47:06
nit: make const if possible.
gone
2013/05/15 21:43:00
Done.
|
| string16 message_; |
| bool auto_expire_; // Should it expire automatically on navigation? |