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

Unified Diff: trunk/src/chrome/browser/ui/views/infobars/confirm_infobar.cc

Issue 102163002: Revert 238283 "Infobar system refactor." (Closed) Base URL: svn://svn.chromium.org/chrome/
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: trunk/src/chrome/browser/ui/views/infobars/confirm_infobar.cc
===================================================================
--- trunk/src/chrome/browser/ui/views/infobars/confirm_infobar.cc (revision 238401)
+++ trunk/src/chrome/browser/ui/views/infobars/confirm_infobar.cc (working copy)
@@ -14,17 +14,16 @@
// ConfirmInfoBarDelegate -----------------------------------------------------
-// static
-scoped_ptr<InfoBar> ConfirmInfoBarDelegate::CreateInfoBar(
- scoped_ptr<ConfirmInfoBarDelegate> delegate) {
- return scoped_ptr<InfoBar>(new ConfirmInfoBar(delegate.Pass()));
+InfoBar* ConfirmInfoBarDelegate::CreateInfoBar(InfoBarService* owner) {
+ return new ConfirmInfoBar(owner, this);
}
// ConfirmInfoBar -------------------------------------------------------------
-ConfirmInfoBar::ConfirmInfoBar(scoped_ptr<ConfirmInfoBarDelegate> delegate)
- : InfoBarView(delegate.PassAs<InfoBarDelegate>()),
+ConfirmInfoBar::ConfirmInfoBar(InfoBarService* owner,
+ ConfirmInfoBarDelegate* delegate)
+ : InfoBarView(owner, delegate),
label_(NULL),
ok_button_(NULL),
cancel_button_(NULL),

Powered by Google App Engine
This is Rietveld 408576698