Commit 5dc65693 authored by Yue Li's avatar Yue Li Committed by Commit Bot

Quick Answers: Add context menu baseline metrics

Bug: b/170769672
Test: None
Change-Id: I482d2812b1191df2b5a35a7c57024dadc3f87a99
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2487561
Commit-Queue: Yue Li <updowndota@chromium.org>
Reviewed-by: default avatarIlya Sherman <isherman@chromium.org>
Reviewed-by: default avatarAvi Drissman <avi@chromium.org>
Reviewed-by: default avatarXiaohui Chen <xiaohuic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#824355}
parent c49ced8b
......@@ -8,6 +8,7 @@
#include "ash/public/cpp/assistant/controller/assistant_interaction_controller.h"
#include "ash/public/cpp/quick_answers/controller/quick_answers_controller.h"
#include "base/metrics/histogram_functions.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/time/time.h"
......@@ -111,6 +112,9 @@ void QuickAnswersMenuObserver::OnContextMenuViewBoundsChanged(
}
void QuickAnswersMenuObserver::OnMenuClosed() {
base::UmaHistogramBoolean("QuickAnswers.ContextMenu.Close",
is_other_command_executed_);
if (!quick_answers_controller_)
return;
......
......@@ -281,6 +281,19 @@ reviews. Googlers can read more about this at go/gwsq-gerrit.
</summary>
</histogram>
<histogram name="QuickAnswers.ContextMenu.Close" enum="BooleanClicked"
expires_after="2021-02-14">
<owner>updowndota@google.com</owner>
<owner>croissant-eng@chromium.org</owner>
<summary>
Records whether or not the user interacted (via clicking) with a context
menu, whether or not that menu included any Quick Answers. Recorded when the
menu is closed. This metric can be used as a baseline for Quick Answers
engagement metrics, which record whether users click on context menus that
*do* include a Quick Answers card. Recorded on ChromeOS only.
</summary>
</histogram>
<histogram name="QuickAnswers.Intent" enum="QuickAnswersIntentType"
expires_after="2021-04-25">
<owner>llin@google.com</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