Commit dbe71763 authored by Troy Hildebrandt's avatar Troy Hildebrandt Committed by Commit Bot

Add metric for deleting omnibox text on Android.

Adds the MobileOmniboxDeleteUrl metric and records it whenever the user
clears the contents of the omnibox with the delete button.

Change-Id: Idddeccb89999ceeea45873a05ba2b052f0e7d2d2
Reviewed-on: https://chromium-review.googlesource.com/892140Reviewed-by: default avatarMaria Khomenko <mariakhomenko@chromium.org>
Reviewed-by: default avatarMark Pearson <mpearson@chromium.org>
Commit-Queue: Troy Hildebrandt <thildebr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#533033}
parent de04a533
......@@ -1942,6 +1942,7 @@ public class LocationBarLayout extends FrameLayout
}
startZeroSuggest();
RecordUserAction.record("MobileOmniboxDeleteUrl");
return;
} else if (!mUrlHasFocus && shouldShowPageInfoForView(v)) {
if (mToolbarDataProvider.hasTab() && getCurrentTab().getWebContents() != null
......
......@@ -12032,6 +12032,13 @@ should be able to be added at any place in this file.
<description>Please enter the description of the metric.</description>
</action>
<action name="MobileOmniboxDeleteUrl">
<owner>thildebr@chromium.org</owner>
<description>
The user cleared the contents of the omnibox via the delete button.
</description>
</action>
<action name="MobileOmniboxRefineSuggestion">
<obsolete>
Deprecated 07/2017. Replaced by MobileOmniboxRefineSuggestion.Query and
......
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