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

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

Issue 2728663005: Add a histogram for omnibox answer suggestion types. (Closed)
Patch Set: Respond to comments. Created 3 years, 10 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') | tools/metrics/histograms/histograms.xml » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/omnibox/browser/search_suggestion_parser.cc
diff --git a/components/omnibox/browser/search_suggestion_parser.cc b/components/omnibox/browser/search_suggestion_parser.cc
index 32f7e5fee69d8139a8105a3d57358a6a2dc2d667..04e10a02ba461d6d5b8f60b09e06c229b207673a 100644
--- a/components/omnibox/browser/search_suggestion_parser.cc
+++ b/components/omnibox/browser/search_suggestion_parser.cc
@@ -524,6 +524,8 @@ bool SearchSuggestionParser::ParseSuggestResults(
answer = SuggestionAnswer::ParseAnswer(answer_json);
int answer_type = 0;
if (answer && base::StringToInt(answer_type_str, &answer_type)) {
+ UMA_HISTOGRAM_SPARSE_SLOWLY("Omnibox.AnswerParseType",
+ answer_type);
answer_parsed_successfully = true;
answer->set_type(answer_type);
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | tools/metrics/histograms/histograms.xml » ('J')

Powered by Google App Engine
This is Rietveld 408576698