summaryrefslogtreecommitdiffstats
path: root/chrome/browser/api/infobars/simple_alert_infobar_delegate.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/api/infobars/simple_alert_infobar_delegate.cc')
-rw-r--r--chrome/browser/api/infobars/simple_alert_infobar_delegate.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/browser/api/infobars/simple_alert_infobar_delegate.cc b/chrome/browser/api/infobars/simple_alert_infobar_delegate.cc
index e36a065..c099944 100644
--- a/chrome/browser/api/infobars/simple_alert_infobar_delegate.cc
+++ b/chrome/browser/api/infobars/simple_alert_infobar_delegate.cc
@@ -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,