Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1205)

Unified Diff: ash/shelf/app_list_button.cc

Issue 2900913002: add UMA metrics for voice interaction entries. (Closed)
Patch Set: address review comments Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/app_list_button.cc
diff --git a/ash/shelf/app_list_button.cc b/ash/shelf/app_list_button.cc
index e1fd34e35271883f0fc945b7a3123e26878bb19e..ee7c8abfbe34d6a6759ae4ab161a7498d0f946f9 100644
--- a/ash/shelf/app_list_button.cc
+++ b/ash/shelf/app_list_button.cc
@@ -17,6 +17,8 @@
#include "ash/system/tray/tray_popup_utils.h"
#include "base/command_line.h"
#include "base/memory/ptr_util.h"
+#include "base/metrics/user_metrics.h"
+#include "base/metrics/user_metrics_action.h"
#include "chromeos/chromeos_switches.h"
#include "ui/accessibility/ax_node_data.h"
#include "ui/app_list/presenter/app_list.h"
@@ -95,6 +97,8 @@ void AppListButton::OnGestureEvent(ui::GestureEvent* event) {
break;
case ui::ET_GESTURE_LONG_PRESS:
if (chromeos::switches::IsVoiceInteractionEnabled()) {
+ base::RecordAction(base::UserMetricsAction(
+ "VoiceInteraction.Started.AppListButtonLongPress"));
Shell::Get()->app_list()->StartVoiceInteractionSession();
event->SetHandled();
} else {
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698