Commit 1bdfcf48 authored by Matthew Mourgos's avatar Matthew Mourgos Committed by Commit Bot

cros: Split AppListSearchQueryLength by clamshell and tablet mode

Bug: 953525
Change-Id: I3541430056b9924d9d249f4c6329c249b74bb172
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1574610
Commit-Queue: Matthew Mourgos <mmourgos@chromium.org>
Reviewed-by: default avatarAlex Newcomer <newcomer@chromium.org>
Reviewed-by: default avatarSteven Holte <holte@chromium.org>
Cr-Commit-Position: refs/heads/master@{#653502}
parent fc89ece3
...@@ -841,6 +841,13 @@ void AppListControllerImpl::OpenSearchResult( ...@@ -841,6 +841,13 @@ void AppListControllerImpl::OpenSearchResult(
UMA_HISTOGRAM_COUNTS_100(app_list::kSearchQueryLength, UMA_HISTOGRAM_COUNTS_100(app_list::kSearchQueryLength,
last_raw_query_.size()); last_raw_query_.size());
if (IsTabletMode()) {
UMA_HISTOGRAM_COUNTS_100(app_list::kSearchQueryLengthInTablet,
last_raw_query_.size());
} else {
UMA_HISTOGRAM_COUNTS_100(app_list::kSearchQueryLengthInClamshell,
last_raw_query_.size());
}
if (result->distance_from_origin() >= 0) { if (result->distance_from_origin() >= 0) {
UMA_HISTOGRAM_COUNTS_100(app_list::kSearchResultDistanceFromOrigin, UMA_HISTOGRAM_COUNTS_100(app_list::kSearchResultDistanceFromOrigin,
......
...@@ -89,6 +89,16 @@ constexpr char kSearchResultOpenDisplayTypeHistogram[] = ...@@ -89,6 +89,16 @@ constexpr char kSearchResultOpenDisplayTypeHistogram[] =
// opened. // opened.
constexpr char kSearchQueryLength[] = "Apps.AppListSearchQueryLength"; constexpr char kSearchQueryLength[] = "Apps.AppListSearchQueryLength";
// The UMA histogram that logs how long the search query was when a result was
// opened in clamshell mode.
constexpr char kSearchQueryLengthInClamshell[] =
"Apps.AppListSearchQueryLength.ClamshellMode";
// The UMA histogram that logs how long the search query was when a result was
// opened in tablet mode.
constexpr char kSearchQueryLengthInTablet[] =
"Apps.AppListSearchQueryLength.TabletMode";
// The UMA histogram that logs the Manhattan distance from the origin of the // The UMA histogram that logs the Manhattan distance from the origin of the
// search results to the selected result. // search results to the selected result.
constexpr char kSearchResultDistanceFromOrigin[] = constexpr char kSearchResultDistanceFromOrigin[] =
......
...@@ -4128,6 +4128,8 @@ uploading your change for review. ...@@ -4128,6 +4128,8 @@ uploading your change for review.
</histogram> </histogram>
<histogram name="Apps.AppListSearchQueryLength" units="characters"> <histogram name="Apps.AppListSearchQueryLength" units="characters">
<!-- Name completed by histogram_suffixes name="TabletOrClamshellMode" -->
<owner>calamity@chromium.org</owner> <owner>calamity@chromium.org</owner>
<summary> <summary>
The length of the app list search query when a result is opened. This is The length of the app list search query when a result is opened. This is
...@@ -155739,6 +155741,7 @@ should be kept until we use this API. --> ...@@ -155739,6 +155741,7 @@ should be kept until we use this API. -->
<suffix name="ClamshellMode" label="Clamshell Mode Enabled"/> <suffix name="ClamshellMode" label="Clamshell Mode Enabled"/>
<suffix name="TabletMode" label="Tablet Mode Enabled"/> <suffix name="TabletMode" label="Tablet Mode Enabled"/>
<affected-histogram name="Apps.AppListFolderNameLength"/> <affected-histogram name="Apps.AppListFolderNameLength"/>
<affected-histogram name="Apps.AppListSearchQueryLength"/>
<affected-histogram name="Apps.AppListSearchResultOpenTypeV2"/> <affected-histogram name="Apps.AppListSearchResultOpenTypeV2"/>
<affected-histogram <affected-histogram
name="Apps.PaginationTransition.DragScroll.PresentationTime"/> name="Apps.PaginationTransition.DragScroll.PresentationTime"/>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment