Commit b8bc0ab2 authored by David Jacobo's avatar David Jacobo Committed by Commit Bot

Record request metric to smart text selection

Smart text selection already has a metric for usage, more specifically
this is recorded everytime an apps request is done to the ARC container.
Currently the feature can be accessed via touch gestures or the context
menu. This CL adds tracking to the access via touch gesture, since
context menu was already covered.

Bug: None
Test: Build.
Change-Id: Id394796f140605041efa0a37e298fd0764571292
Reviewed-on: https://chromium-review.googlesource.com/c/1449002
Auto-Submit: David Jacobo <djacobo@chromium.org>
Commit-Queue: Scott Violet <sky@chromium.org>
Reviewed-by: default avatarScott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#628175}
parent c9282b7a
......@@ -7,6 +7,8 @@
#include <utility>
#include "base/bind.h"
#include "base/metrics/user_metrics.h"
#include "base/metrics/user_metrics_action.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/ui/views/touch_selection_menu_chromeos.h"
#include "components/arc/arc_bridge_service.h"
......@@ -79,6 +81,7 @@ bool TouchSelectionMenuRunnerChromeOS::RequestTextSelection(
const display::Screen* screen = display::Screen::GetScreen();
DCHECK(screen);
base::RecordAction(base::UserMetricsAction("Arc.SmartTextSelection.Request"));
// Fetch actions for selected text and then show quick menu.
instance->RequestTextSelectionActions(
converted_text,
......
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