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

Unified Diff: ui/app_list/search_result.h

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/search_controller.cc ('k') | ui/app_list/search_result.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/search_result.h
diff --git a/ui/app_list/search_result.h b/ui/app_list/search_result.h
index e571316587c0312ba225a20452a4a8edef72f4dc..314746f9744cecec2de61ec426fece93c78350c3 100644
--- a/ui/app_list/search_result.h
+++ b/ui/app_list/search_result.h
@@ -111,6 +111,11 @@ class APP_LIST_EXPORT SearchResult {
display_type_ = display_type;
}
+ int distance_from_origin() { return distance_from_origin_; }
+ void set_distance_from_origin(int distance) {
+ distance_from_origin_ = distance;
+ }
+
const Actions& actions() const {
return actions_;
}
@@ -169,6 +174,10 @@ class APP_LIST_EXPORT SearchResult {
double relevance_;
DisplayType display_type_;
+ // The Manhattan distance from the origin of all search results to this
+ // result. This is logged for UMA.
+ int distance_from_origin_;
+
Actions actions_;
bool voice_result_;
« no previous file with comments | « ui/app_list/search_controller.cc ('k') | ui/app_list/search_result.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698