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

Unified Diff: chrome/browser/ui/android/infobars/confirm_infobar.h

Issue 22694006: Infobar system refactor. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 2 months 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/android/infobars/confirm_infobar.h
===================================================================
--- chrome/browser/ui/android/infobars/confirm_infobar.h (revision 226624)
+++ chrome/browser/ui/android/infobars/confirm_infobar.h (working copy)
@@ -12,7 +12,7 @@
class ConfirmInfoBar : public InfoBarAndroid {
public:
- ConfirmInfoBar(InfoBarService* owner, InfoBarDelegate* delegate);
+ explicit ConfirmInfoBar(scoped_ptr<ConfirmInfoBarDelegate> delegate);
virtual ~ConfirmInfoBar();
private:
@@ -22,9 +22,9 @@
virtual void ProcessButton(int action,
const std::string& action_value) OVERRIDE;
+ ConfirmInfoBarDelegate* GetDelegate();
string16 GetTextFor(ConfirmInfoBarDelegate::InfoBarButton button);
- ConfirmInfoBarDelegate* delegate_;
base::android::ScopedJavaGlobalRef<jobject> java_confirm_delegate_;
DISALLOW_COPY_AND_ASSIGN(ConfirmInfoBar);

Powered by Google App Engine
This is Rietveld 408576698