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

Unified Diff: components/omnibox/browser/base_search_provider.cc

Issue 1983773002: Cache SearchEngineType of TemplateURL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor-extracting-terms-from-template-url
Patch Set: Fix typo Created 4 years, 6 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/omnibox/browser/base_search_provider.cc
diff --git a/components/omnibox/browser/base_search_provider.cc b/components/omnibox/browser/base_search_provider.cc
index afaa9ce3358078dbc14e3594b2ae2314a0ca59dc..e75b9e35fe16ba2db3b32714b3279f64770b0c61 100644
--- a/components/omnibox/browser/base_search_provider.cc
+++ b/components/omnibox/browser/base_search_provider.cc
@@ -20,7 +20,6 @@
#include "components/omnibox/browser/omnibox_field_trial.h"
#include "components/omnibox/browser/suggestion_answer.h"
#include "components/search_engines/template_url.h"
-#include "components/search_engines/template_url_prepopulate_data.h"
#include "components/search_engines/template_url_service.h"
#include "net/base/registry_controlled_domains/registry_controlled_domain.h"
#include "net/url_request/url_fetcher.h"
@@ -317,8 +316,7 @@ bool BaseSearchProvider::ZeroSuggestEnabled(
// (currently only the prepopulated Google provider).
if (template_url == NULL ||
!template_url->SupportsReplacement(search_terms_data) ||
- TemplateURLPrepopulateData::GetEngineType(
- *template_url, search_terms_data) != SEARCH_ENGINE_GOOGLE)
+ template_url->GetEngineType(search_terms_data) != SEARCH_ENGINE_GOOGLE)
return false;
return true;

Powered by Google App Engine
This is Rietveld 408576698