Commit ae6a5998 authored by Jorge Gil's avatar Jorge Gil Committed by Commit Bot

Add UMA user action for Smart Text Selection requests for actions

Bug: b/32781610
Change-Id: I1a244e1ed247913a3829e6efaf15b65a3c03f2cd
Reviewed-on: https://chromium-review.googlesource.com/1161571
Commit-Queue: Jorge Gil <jorgegil@google.com>
Reviewed-by: default avatarSteven Holte <holte@chromium.org>
Reviewed-by: default avatarDavid Jacobo <djacobo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#581119}
parent 03381bae
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include <utility> #include <utility>
#include "base/bind.h" #include "base/bind.h"
#include "base/metrics/user_metrics.h"
#include "base/strings/string_util.h" #include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h" #include "base/strings/utf_string_conversions.h"
#include "chrome/app/chrome_command_ids.h" #include "chrome/app/chrome_command_ids.h"
...@@ -53,6 +54,7 @@ void StartSmartSelectionActionMenu::InitMenu( ...@@ -53,6 +54,7 @@ void StartSmartSelectionActionMenu::InitMenu(
if (!instance) if (!instance)
return; return;
base::RecordAction(base::UserMetricsAction("Arc.SmartTextSelection.Request"));
instance->RequestTextSelectionActions( instance->RequestTextSelectionActions(
base::UTF16ToUTF8(params.selection_text), base::UTF16ToUTF8(params.selection_text),
mojom::ScaleFactor(ui::GetSupportedScaleFactors().back()), mojom::ScaleFactor(ui::GetSupportedScaleFactors().back()),
......
...@@ -2079,6 +2079,15 @@ should be able to be added at any place in this file. ...@@ -2079,6 +2079,15 @@ should be able to be added at any place in this file.
</description> </description>
</action> </action>
<action name="Arc.SmartTextSelection.Request">
<owner>jorgegil@google.com</owner>
<description>
Recorded when a request to the ARC++ container to generate Smart Text
Selection actions is made. This happens when the user opens the Context Menu
via a right-click.
</description>
</action>
<action name="AutoDetectChange"> <action name="AutoDetectChange">
<owner>Please list the metric's owners. Add more owner tags as needed.</owner> <owner>Please list the metric's owners. Add more owner tags as needed.</owner>
<description>Please enter the description of this user action.</description> <description>Please enter the description of this user action.</description>
......
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