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

Unified Diff: trunk/src/chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.h

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/omnibox/alternate_nav_infobar_delegate.h
===================================================================
--- trunk/src/chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.h (revision 238401)
+++ trunk/src/chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.h (working copy)
@@ -5,16 +5,15 @@
#ifndef CHROME_BROWSER_UI_OMNIBOX_ALTERNATE_NAV_INFOBAR_DELEGATE_H_
#define CHROME_BROWSER_UI_OMNIBOX_ALTERNATE_NAV_INFOBAR_DELEGATE_H_
-#include "base/memory/scoped_ptr.h"
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
#include "chrome/browser/autocomplete/autocomplete_match.h"
#include "chrome/browser/infobars/infobar_delegate.h"
class AlternateNavInfoBarDelegate : public InfoBarDelegate {
public:
- virtual ~AlternateNavInfoBarDelegate();
-
- // Creates an alternate nav infobar and delegate and adds the infobar to the
- // infobar service for |web_contents|.
+ // Creates an alternate nav infobar delegate and adds it to the infobar
+ // service for |web_contents|.
static void Create(content::WebContents* web_contents,
const string16& text,
const AutocompleteMatch& match,
@@ -25,16 +24,15 @@
bool LinkClicked(WindowOpenDisposition disposition);
private:
- AlternateNavInfoBarDelegate(Profile* profile,
+ AlternateNavInfoBarDelegate(InfoBarService* owner,
+ Profile* profile,
const string16& text,
const AutocompleteMatch& match,
const GURL& search_url);
+ virtual ~AlternateNavInfoBarDelegate();
- // Returns an alternate nav infobar that owns |delegate|.
- static scoped_ptr<InfoBar> CreateInfoBar(
- scoped_ptr<AlternateNavInfoBarDelegate> delegate);
-
// InfoBarDelegate:
+ virtual InfoBar* CreateInfoBar(InfoBarService* owner) OVERRIDE;
virtual int GetIconID() const OVERRIDE;
virtual Type GetInfoBarType() const OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698