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

Unified Diff: ash/wm/window_cycle_controller.cc

Issue 2160833002: Adds WmShell::RecordTaskSwitchMetric() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/wm/window_cycle_controller.cc
diff --git a/ash/wm/window_cycle_controller.cc b/ash/wm/window_cycle_controller.cc
index 24d05f1a93cfba89ff079c5460d973f5a5549177..6ffe7d6ec4d63f933ccab87a4f223444fae9e05a 100644
--- a/ash/wm/window_cycle_controller.cc
+++ b/ash/wm/window_cycle_controller.cc
@@ -4,6 +4,7 @@
#include "ash/wm/window_cycle_controller.h"
+#include "ash/common/metrics/task_switch_source.h"
#include "ash/common/session/session_state_delegate.h"
#include "ash/common/wm/mru_window_tracker.h"
#include "ash/common/wm_shell.h"
@@ -121,10 +122,8 @@ void WindowCycleController::StopCycling() {
if (active_window_after_window_cycle != nullptr &&
active_window_before_window_cycle_ != active_window_after_window_cycle) {
- Shell::GetInstance()
- ->metrics()
- ->task_switch_metrics_recorder()
- .OnTaskSwitch(TaskSwitchMetricsRecorder::WINDOW_CYCLE_CONTROLLER);
+ WmShell::Get()->RecordTaskSwitchMetric(
+ TaskSwitchSource::WINDOW_CYCLE_CONTROLLER);
}
active_window_before_window_cycle_ = nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698