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

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

Issue 58553003: Pass the AlternateNavInfoBarDelegate an AutocompleteMatch instead of a GURL. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 1 month 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 | « no previous file | chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.h
===================================================================
--- chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.h (revision 232852)
+++ chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.h (working copy)
@@ -7,6 +7,7 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
+#include "chrome/browser/autocomplete/autocomplete_match.h"
#include "chrome/browser/infobars/infobar_delegate.h"
#include "url/gurl.h"
@@ -14,7 +15,7 @@
public:
// Creates an alternate nav infobar delegate and adds it to |infobar_service|.
static void Create(InfoBarService* infobar_service,
- const GURL& alternate_nav_url);
+ const AutocompleteMatch& match);
string16 GetMessageTextWithOffset(size_t* link_offset) const;
string16 GetLinkText() const;
@@ -22,7 +23,7 @@
private:
AlternateNavInfoBarDelegate(InfoBarService* owner,
- const GURL& alternate_nav_url);
+ const AutocompleteMatch& match);
virtual ~AlternateNavInfoBarDelegate();
// InfoBarDelegate:
@@ -30,7 +31,7 @@
virtual int GetIconID() const OVERRIDE;
virtual Type GetInfoBarType() const OVERRIDE;
- GURL alternate_nav_url_;
+ const AutocompleteMatch match_;
DISALLOW_COPY_AND_ASSIGN(AlternateNavInfoBarDelegate);
};
« no previous file with comments | « no previous file | chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698