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

Unified Diff: chrome/browser/search_engines/template_url_model.h

Issue 6340012: Fix a DCHECK failure in AutocompleteEditModel::OnPopupDataChanged() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and remove the url check. Created 9 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
Index: chrome/browser/search_engines/template_url_model.h
diff --git a/chrome/browser/search_engines/template_url_model.h b/chrome/browser/search_engines/template_url_model.h
index 504e79f79a3a2488a1d0d995b627362fe3311886..b25da9b32ff62c088e7085e344dbfb54302f2b7a 100644
--- a/chrome/browser/search_engines/template_url_model.h
+++ b/chrome/browser/search_engines/template_url_model.h
@@ -59,6 +59,7 @@ class TemplateURLModel : public WebDataServiceConsumer,
public NotificationObserver {
public:
typedef std::map<std::string, std::string> QueryTerms;
+ typedef std::vector<const TemplateURL*> TemplateURLVector;
// Struct used for initializing the data store with fake data.
// Each initializer is mapped to a TemplateURL.
@@ -157,7 +158,7 @@ class TemplateURLModel : public WebDataServiceConsumer,
// Returns the set of URLs describing the keywords. The elements are owned
// by TemplateURLModel and should not be deleted.
- std::vector<const TemplateURL*> GetTemplateURLs() const;
+ TemplateURLVector GetTemplateURLs() const;
// Increment the usage count of a keyword.
// Called when a URL is loaded that was generated from a keyword.
@@ -258,7 +259,6 @@ class TemplateURLModel : public WebDataServiceConsumer,
friend class TemplateURLModelTestUtil;
typedef std::map<string16, const TemplateURL*> KeywordToTemplateMap;
- typedef std::vector<const TemplateURL*> TemplateURLVector;
// Helper functor for FindMatchingKeywords(), for finding the range of
// keywords which begin with a prefix.

Powered by Google App Engine
This is Rietveld 408576698