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

Unified Diff: chrome/browser/api/infobars/simple_alert_infobar_delegate.h

Issue 11644059: Change infobar creation to use a public static Create() method on the infobar delegate classes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 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/api/infobars/simple_alert_infobar_delegate.h
===================================================================
--- chrome/browser/api/infobars/simple_alert_infobar_delegate.h (revision 175396)
+++ chrome/browser/api/infobars/simple_alert_infobar_delegate.h (working copy)
@@ -12,12 +12,17 @@
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.
+ const string16& message,
+ bool auto_expire);
+
+ private:
SimpleAlertInfoBarDelegate(InfoBarService* infobar_service,
- gfx::Image* icon, // May be NULL.
+ gfx::Image* icon,
const string16& message,
bool auto_expire);
-
- private:
virtual ~SimpleAlertInfoBarDelegate();
// ConfirmInfoBarDelegate:
« no previous file with comments | « chrome/browser/api/infobars/infobar_service.h ('k') | chrome/browser/api/infobars/simple_alert_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698