| 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;
|
| }
|
|
|