Index: chrome/browser/api/infobars/simple_alert_infobar_delegate.cc |
=================================================================== |
--- chrome/browser/api/infobars/simple_alert_infobar_delegate.cc (revision 175396) |
+++ chrome/browser/api/infobars/simple_alert_infobar_delegate.cc (working copy) |
@@ -4,8 +4,19 @@ |
#include "chrome/browser/api/infobars/simple_alert_infobar_delegate.h" |
+#include "chrome/browser/api/infobars/infobar_service.h" |
#include "third_party/skia/include/core/SkBitmap.h" |
+// static |
+void SimpleAlertInfoBarDelegate::Create(InfoBarService* infobar_service, |
+ gfx::Image* icon, |
+ const string16& message, |
+ bool auto_expire) { |
+ infobar_service->AddInfoBar(scoped_ptr<InfoBarDelegate>( |
+ new SimpleAlertInfoBarDelegate(infobar_service, icon, message, |
+ auto_expire))); |
+} |
+ |
SimpleAlertInfoBarDelegate::SimpleAlertInfoBarDelegate( |
InfoBarService* infobar_service, |
gfx::Image* icon, |