commit | 730add3aa956692df32fc65e959a0012fe6716b8 | [log] [tgz] |
---|---|---|
author | Gang Wu <[email protected]> | Fri Nov 01 00:10:55 2019 |
committer | Commit Bot <[email protected]> | Fri Nov 01 00:10:55 2019 |
tree | 526d2d1c52de2de462e55cc8f187fea939685839 | |
parent | 2b74c45024820fc780e1430608801b577fbead18 [diff] [blame] |
add user action for remove clipboard suggestions Bug: 1019252 Change-Id: I92e73ae5f587fc50a05676f7c3eb5502d0caaf64 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1887891 Reviewed-by: Jean-François Geyelin <[email protected]> Reviewed-by: Ilya Sherman <[email protected]> Commit-Queue: Gang Wu <[email protected]> Cr-Commit-Position: refs/heads/master@{#711538}
diff --git a/components/omnibox/browser/clipboard_provider.cc b/components/omnibox/browser/clipboard_provider.cc index 93fe02be5..b3a81b9e 100644 --- a/components/omnibox/browser/clipboard_provider.cc +++ b/components/omnibox/browser/clipboard_provider.cc
@@ -16,6 +16,7 @@ #include "base/metrics/field_trial_params.h" #include "base/metrics/histogram_functions.h" #include "base/metrics/histogram_macros.h" +#include "base/metrics/user_metrics.h" #include "base/optional.h" #include "base/strings/utf_string_conversions.h" #include "base/task/post_task.h" @@ -93,6 +94,9 @@ void RecordDeletingClipboardSuggestionMetrics( AutocompleteMatchType::Type match_type, const base::TimeDelta clipboard_contents_age) { + base::RecordAction( + base::UserMetricsAction("Omnibox.ClipboardSuggestionRemoved")); + UMA_HISTOGRAM_LONG_TIMES_100("Omnibox.ClipboardSuggestionRemovedAge", clipboard_contents_age); if (match_type == AutocompleteMatchType::CLIPBOARD_URL) {