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

Unified Diff: components/search_engines/template_url_data.h

Issue 1983773002: Cache SearchEngineType of TemplateURL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor-extracting-terms-from-template-url
Patch Set: Created 4 years, 7 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: components/search_engines/template_url_data.h
diff --git a/components/search_engines/template_url_data.h b/components/search_engines/template_url_data.h
index 11943b0ce673eefd744dacf3c8615ff9e5bf9e34..fbcbcf3d49b3981cf6335a517b39c3584436c9ff 100644
--- a/components/search_engines/template_url_data.h
+++ b/components/search_engines/template_url_data.h
@@ -10,6 +10,7 @@
#include "base/strings/string16.h"
#include "base/time/time.h"
+#include "components/search_engines/search_engine_type.h"
#include "components/search_engines/template_url_id.h"
#include "url/gurl.h"
@@ -99,6 +100,9 @@ struct TemplateURLData {
// the New Tab page, de-emphasizing the omnibox as "where you go to search".
int usage_count;
+ // The type of the search engine.
+ SearchEngineType engine_type;
+
// If this TemplateURL comes from prepopulated data the prepopulate_id is > 0.
int prepopulate_id;

Powered by Google App Engine
This is Rietveld 408576698