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

Unified Diff: ash/metrics/task_switch_metrics_recorder.cc

Issue 1126333005: Added metrics to track the time between task switches done via Alt+Tab and Alt+Shift+Tab. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renamed kAcceleratorWindowCycle_histogram to kAcceleratorWindowCycleHistogramName. 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
Index: ash/metrics/task_switch_metrics_recorder.cc
diff --git a/ash/metrics/task_switch_metrics_recorder.cc b/ash/metrics/task_switch_metrics_recorder.cc
index 667c7e4ffc7fe2eb1fdf47a9504fff50801de531..a22602cda3c5bf17fd4c14c7799d1c8f2df4df59 100644
--- a/ash/metrics/task_switch_metrics_recorder.cc
+++ b/ash/metrics/task_switch_metrics_recorder.cc
@@ -13,12 +13,17 @@ namespace {
const char kShelfHistogramName[] =
"Ash.Shelf.TimeBetweenNavigateToTaskSwitches";
+const char kAcceleratorWindowCycleHistogramName[] =
+ "Ash.WindowCycleController.TimeBetweenTaskSwitches";
+
// Returns the histogram name for the given |task_switch_source|.
const char* GetHistogramName(
TaskSwitchMetricsRecorder::TaskSwitchSource task_switch_source) {
switch (task_switch_source) {
case TaskSwitchMetricsRecorder::kShelf:
return kShelfHistogramName;
+ case TaskSwitchMetricsRecorder::kWindowCycleController:
+ return kAcceleratorWindowCycleHistogramName;
}
NOTREACHED();
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698