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

Unified Diff: chrome/browser/ui/ash/app_list/app_list_controller_ash.cc

Issue 1145453003: Record time between selecting items from the Ash app list (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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 | « ash/metrics/task_switch_metrics_recorder_unittest.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/app_list/app_list_controller_ash.cc
diff --git a/chrome/browser/ui/ash/app_list/app_list_controller_ash.cc b/chrome/browser/ui/ash/app_list/app_list_controller_ash.cc
index ce65a133296438a0d15e538b27b55bbd4e3a7d25..969f77698ba373aa7d60c731315c4b20c64ddda3 100644
--- a/chrome/browser/ui/ash/app_list/app_list_controller_ash.cc
+++ b/chrome/browser/ui/ash/app_list/app_list_controller_ash.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/ui/ash/app_list/app_list_controller_ash.h"
+#include "ash/metrics/task_switch_metrics_recorder.h"
#include "ash/shell.h"
#include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h"
#include "chrome/browser/ui/browser_navigator.h"
@@ -101,6 +102,11 @@ void AppListControllerDelegateAsh::ActivateApp(
const extensions::Extension* extension,
AppListSource source,
int event_flags) {
+ ash::Shell::GetInstance()
+ ->metrics()
+ ->task_switch_metrics_recorder()
+ .OnTaskSwitch(ash::TaskSwitchMetricsRecorder::kAppList);
+
// Platform apps treat activations as a launch. The app can decide whether to
// show a new window or focus an existing window as it sees fit.
if (extension->is_platform_app()) {
« no previous file with comments | « ash/metrics/task_switch_metrics_recorder_unittest.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698