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

Unified Diff: trunk/src/chrome/browser/ui/gtk/infobars/confirm_infobar_gtk.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/gtk/infobars/confirm_infobar_gtk.cc
===================================================================
--- trunk/src/chrome/browser/ui/gtk/infobars/confirm_infobar_gtk.cc (revision 238401)
+++ trunk/src/chrome/browser/ui/gtk/infobars/confirm_infobar_gtk.cc (working copy)
@@ -16,18 +16,16 @@
// ConfirmInfoBarDelegate ------------------------------------------------------
-// static
-scoped_ptr<InfoBar> ConfirmInfoBarDelegate::CreateInfoBar(
- scoped_ptr<ConfirmInfoBarDelegate> delegate) {
- return scoped_ptr<InfoBar>(new ConfirmInfoBarGtk(delegate.Pass()));
+InfoBar* ConfirmInfoBarDelegate::CreateInfoBar(InfoBarService* owner) {
+ return new ConfirmInfoBarGtk(owner, this);
}
// ConfirmInfoBarGtk -----------------------------------------------------------
-ConfirmInfoBarGtk::ConfirmInfoBarGtk(
- scoped_ptr<ConfirmInfoBarDelegate> delegate)
- : InfoBarGtk(delegate.PassAs<InfoBarDelegate>()),
+ConfirmInfoBarGtk::ConfirmInfoBarGtk(InfoBarService* owner,
+ ConfirmInfoBarDelegate* delegate)
+ : InfoBarGtk(owner, delegate),
confirm_hbox_(NULL),
size_group_(NULL) {
}
@@ -37,8 +35,8 @@
g_object_unref(size_group_);
}
-void ConfirmInfoBarGtk::PlatformSpecificSetOwner() {
- InfoBarGtk::PlatformSpecificSetOwner();
+void ConfirmInfoBarGtk::InitWidgets() {
+ InfoBarGtk::InitWidgets();
confirm_hbox_ = gtk_chrome_shrinkable_hbox_new(FALSE, FALSE,
kEndOfLabelSpacing);

Powered by Google App Engine
This is Rietveld 408576698