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

Unified Diff: components/search_engines/template_url_service.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/search_engines/template_url_service.cc
diff --git a/components/search_engines/template_url_service.cc b/components/search_engines/template_url_service.cc
index 65a7581695de8fc197a9cda0a25a8e6655f70d18..ee69773d922c903ed8a876cfd91392063b6fb2d0 100644
--- a/components/search_engines/template_url_service.cc
+++ b/components/search_engines/template_url_service.cc
@@ -827,8 +827,7 @@ void TemplateURLService::OnWebDataServiceRequestDone(
UMA_HISTOGRAM_ENUMERATION(
"Search.DefaultSearchProviderType",
- TemplateURLPrepopulateData::GetEngineType(
- *default_search_provider_, search_terms_data()),
+ default_search_provider_->GetEngineType(search_terms_data()),
SEARCH_ENGINE_MAX);
if (rappor_service_) {

Powered by Google App Engine
This is Rietveld 408576698