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

Unified Diff: chrome/browser/search_engines/template_url_service.cc

Issue 295093007: Add back DefaultSearchProviderType UMA metric. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add histograms Created 6 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
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search_engines/template_url_service.cc
diff --git a/chrome/browser/search_engines/template_url_service.cc b/chrome/browser/search_engines/template_url_service.cc
index bc44c0207813b8c465ddf306f65d08640da25647..1f4a64827f8d058e6948fc51c97c8575582c0a76 100644
--- a/chrome/browser/search_engines/template_url_service.cc
+++ b/chrome/browser/search_engines/template_url_service.cc
@@ -959,6 +959,12 @@ void TemplateURLService::OnWebDataServiceRequestDone(
if (new_resource_keyword_version)
service_->SetBuiltinKeywordVersion(new_resource_keyword_version);
+
+ if (default_search_provider_) {
+ UMA_HISTOGRAM_ENUMERATION("Search.DefaultSearchProviderType",
+ TemplateURLPrepopulateData::GetEngineType(*default_search_provider_),
+ SEARCH_ENGINE_MAX);
+ }
}
base::string16 TemplateURLService::GetKeywordShortName(
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698