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

Unified Diff: ui/app_list/search_controller.cc

Issue 1128413002: Add Apps.AppListSearchQueryLength UMA histogram. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_launch_stats
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') | no next file » | 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 dfdf67899426245625d089b2e781016d568e7b0b..9894492aac597c89ea6fd4126a51b65708a93156 100644
--- a/ui/app_list/search_controller.cc
+++ b/ui/app_list/search_controller.cc
@@ -82,6 +82,8 @@ void SearchController::OpenResult(SearchResult* result, int event_flags) {
result->display_type(),
SearchResult::DISPLAY_TYPE_LAST);
+ UMA_HISTOGRAM_COUNTS_100(kSearchQueryLength, search_box_->text().size());
+
result->Open(event_flags);
if (history_ && history_->IsReady()) {
« no previous file with comments | « ui/app_list/app_list_constants.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698