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

Unified Diff: chrome/browser/infobars/infobar_tab_helper.h

Issue 11644059: Change infobar creation to use a public static Create() method on the infobar delegate classes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 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
« no previous file with comments | « chrome/browser/infobars/infobar_extension_api.cc ('k') | chrome/browser/infobars/infobar_tab_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/infobars/infobar_tab_helper.h
===================================================================
--- chrome/browser/infobars/infobar_tab_helper.h (revision 175396)
+++ chrome/browser/infobars/infobar_tab_helper.h (working copy)
@@ -31,10 +31,12 @@
// InfoBarService:
virtual void SetInfoBarsEnabled(bool enabled) OVERRIDE;
- virtual bool AddInfoBar(InfoBarDelegate* delegate) OVERRIDE;
+ virtual InfoBarDelegate* AddInfoBar(
+ scoped_ptr<InfoBarDelegate> delegate) OVERRIDE;
virtual void RemoveInfoBar(InfoBarDelegate* delegate) OVERRIDE;
- virtual bool ReplaceInfoBar(InfoBarDelegate* old_delegate,
- InfoBarDelegate* new_delegate) OVERRIDE;
+ virtual InfoBarDelegate* ReplaceInfoBar(
+ InfoBarDelegate* old_delegate,
+ scoped_ptr<InfoBarDelegate> new_delegate) OVERRIDE;
virtual size_t GetInfoBarCount() const OVERRIDE;
virtual InfoBarDelegate* GetInfoBarDelegateAt(size_t index) OVERRIDE;
virtual content::WebContents* GetWebContents() OVERRIDE;
« no previous file with comments | « chrome/browser/infobars/infobar_extension_api.cc ('k') | chrome/browser/infobars/infobar_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698