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

Unified Diff: chrome/browser/ui/gtk/infobars/after_translate_infobar_gtk.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/ui/gtk/infobars/after_translate_infobar_gtk.cc
===================================================================
--- chrome/browser/ui/gtk/infobars/after_translate_infobar_gtk.cc (revision 238220)
+++ chrome/browser/ui/gtk/infobars/after_translate_infobar_gtk.cc (working copy)
@@ -15,9 +15,8 @@
#include "ui/base/l10n/l10n_util.h"
AfterTranslateInfoBar::AfterTranslateInfoBar(
- InfoBarService* owner,
- TranslateInfoBarDelegate* delegate)
- : TranslateInfoBarBase(owner, delegate),
+ scoped_ptr<TranslateInfoBarDelegate> delegate)
+ : TranslateInfoBarBase(delegate.Pass()),
weak_factory_(this) {
}
@@ -24,8 +23,8 @@
AfterTranslateInfoBar::~AfterTranslateInfoBar() {
}
-void AfterTranslateInfoBar::InitWidgets() {
- TranslateInfoBarBase::InitWidgets();
+void AfterTranslateInfoBar::PlatformSpecificSetOwner() {
+ TranslateInfoBarBase::PlatformSpecificSetOwner();
bool swapped_language_combos = false;
bool autodetermined_source_language =

Powered by Google App Engine
This is Rietveld 408576698