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

Unified Diff: ui/app_list/search_controller.cc

Issue 1132943004: Add Apps.AppListSearchResultDistanceFromOrigin UMA stat. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add_query_length_stat
Patch Set: Created 5 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 | « ui/app_list/app_list_constants.cc ('k') | ui/app_list/search_result.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/search_controller.cc
diff --git a/ui/app_list/search_controller.cc b/ui/app_list/search_controller.cc
index 9894492aac597c89ea6fd4126a51b65708a93156..9fe2cbf3ca733c0ca9cc5884821554978dce627c 100644
--- a/ui/app_list/search_controller.cc
+++ b/ui/app_list/search_controller.cc
@@ -84,6 +84,11 @@ void SearchController::OpenResult(SearchResult* result, int event_flags) {
UMA_HISTOGRAM_COUNTS_100(kSearchQueryLength, search_box_->text().size());
+ if (result->distance_from_origin() >= 0) {
+ UMA_HISTOGRAM_COUNTS_100(kSearchResultDistanceFromOrigin,
+ result->distance_from_origin());
+ }
+
result->Open(event_flags);
if (history_ && history_->IsReady()) {
« no previous file with comments | « ui/app_list/app_list_constants.cc ('k') | ui/app_list/search_result.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698