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

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

Issue 299443015: Merge 272169 "Add back DefaultSearchProviderType UMA metric." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1985/src/
Patch Set: 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
===================================================================
--- chrome/browser/search_engines/template_url_service.cc (revision 272528)
+++ chrome/browser/search_engines/template_url_service.cc (working copy)
@@ -959,6 +959,12 @@
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