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

Unified Diff: chrome/browser/infobars/simple_alert_infobar_delegate.cc

Issue 22694006: Infobar system refactor. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years 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
===================================================================
--- chrome/browser/infobars/simple_alert_infobar_delegate.cc (revision 238220)
+++ chrome/browser/infobars/simple_alert_infobar_delegate.cc (working copy)
@@ -4,6 +4,7 @@
#include "chrome/browser/infobars/simple_alert_infobar_delegate.h"
+#include "chrome/browser/infobars/infobar.h"
#include "chrome/browser/infobars/infobar_service.h"
#include "third_party/skia/include/core/SkBitmap.h"
@@ -12,17 +13,16 @@
int icon_id,
const string16& message,
bool auto_expire) {
- infobar_service->AddInfoBar(scoped_ptr<InfoBarDelegate>(
- new SimpleAlertInfoBarDelegate(infobar_service, icon_id, message,
- auto_expire)));
+ infobar_service->AddInfoBar(ConfirmInfoBarDelegate::CreateInfoBar(
+ scoped_ptr<ConfirmInfoBarDelegate>(
+ new SimpleAlertInfoBarDelegate(icon_id, message, auto_expire))));
}
SimpleAlertInfoBarDelegate::SimpleAlertInfoBarDelegate(
- InfoBarService* infobar_service,
int icon_id,
const string16& message,
bool auto_expire)
- : ConfirmInfoBarDelegate(infobar_service),
+ : ConfirmInfoBarDelegate(),
icon_id_(icon_id),
message_(message),
auto_expire_(auto_expire) {
« no previous file with comments | « chrome/browser/infobars/simple_alert_infobar_delegate.h ('k') | chrome/browser/managed_mode/managed_mode_interstitial.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698