Commit e492ba3a authored by Xiaoqian Dai's avatar Xiaoqian Dai Committed by Commit Bot

Add UMA for how many times the hosted app menu button are clicked.

Per the PM's request, add UMA to record how many times the hosted app
menu button are clicked.

Bug: None
Change-Id: Ib52f936ce5029bf7c23ed15f14f724db665d81f9
Reviewed-on: https://chromium-review.googlesource.com/1214084
Commit-Queue: Xiaoqian Dai <xdai@chromium.org>
Reviewed-by: default avatarIlya Sherman <isherman@chromium.org>
Reviewed-by: default avatarScott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#589739}
parent 0e40db0c
......@@ -4,6 +4,7 @@
#include "chrome/browser/ui/views/frame/hosted_app_menu_button.h"
#include "base/metrics/user_metrics.h"
#include "base/strings/utf_string_conversions.h"
#include "base/time/time.h"
#include "chrome/app/vector_icons/vector_icons.h"
......@@ -73,6 +74,10 @@ void HostedAppMenuButton::OnMenuButtonClicked(views::MenuButton* source,
browser, AppMenu::NO_FLAGS);
menu()->RunMenu(this);
// Add UMA for how many times the hosted app menu button are clicked.
base::RecordAction(
base::UserMetricsAction("HostedAppMenuButtonButton_Clicked"));
}
void HostedAppMenuButton::FadeHighlightOff() {
......
......@@ -5815,6 +5815,14 @@ should be able to be added at any place in this file.
<description>Please enter the description of this user action.</description>
</action>
<action name="HostedAppMenuButtonButton_Clicked">
<owner>xdai@chromium.org</owner>
<owner>omrilio@chromium.org</owner>
<description>
Recorded when the user clicks on the app menu button on a hosted app.
</description>
</action>
<action name="Hotword.HotwordTrigger">
<obsolete>
Deprecated as of 10/2017. Feature removed with crbug/761426.
......
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