Commit 06c18afc authored by Eugene But's avatar Eugene But Committed by Commit Bot

[ios] Record user action when the user taps OPEN IN...

User actions are added to breadcrumbs that get attached to crashlogs to
help with steps to repro.

Bug: 1046223
Change-Id: Icf451a5d9bb72557d18555694227dd4e4d0b23b8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2250705
Auto-Submit: Eugene But <eugenebut@chromium.org>
Reviewed-by: default avatarAlexei Svitkine <asvitkine@chromium.org>
Commit-Queue: Alexei Svitkine <asvitkine@chromium.org>
Cr-Commit-Position: refs/heads/master@{#780395}
parent 6dd9ad89
......@@ -10,6 +10,8 @@
#include "base/logging.h"
#include "base/mac/scoped_cftyperef.h"
#include "base/metrics/histogram_macros.h"
#include "base/metrics/user_metrics.h"
#include "base/metrics/user_metrics_action.h"
#include "base/sequenced_task_runner.h"
#include "base/strings/sys_string_conversions.h"
#include "base/task/post_task.h"
......@@ -339,6 +341,9 @@ class OpenInControllerBridge
- (void)exportFileWithOpenInMenuAnchoredAt:(UIView*)view {
DCHECK([view isKindOfClass:[UIView class]]);
DCHECK_CURRENTLY_ON(web::WebThread::UI);
base::RecordAction(base::UserMetricsAction("IOS.OpenIn"));
if (!_webState)
return;
......
......@@ -8614,6 +8614,15 @@ should be able to be added at any place in this file.
</description>
</action>
<action name="IOS.OpenIn">
<owner>eugenebut@chromium.org</owner>
<owner>mrefaat@chromium.org</owner>
<description>
Recorded when the user taps on OPEN IN... button to share the page
(typically PDF).
</description>
</action>
<action name="IOS.PageZoom.ZoomIn">
<owner>rkgibson@google.com</owner>
<owner>gambard@chromium.org</owner>
......
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