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

Unified Diff: ash/metrics/desktop_task_switch_metric_recorder.cc

Issue 2099443002: Migrate simple ash Shell metrics users. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix win compile error. Created 4 years, 6 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/frame/caption_buttons/frame_size_button.cc ('k') | ash/shelf/shelf_button_pressed_metric_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/metrics/desktop_task_switch_metric_recorder.cc
diff --git a/ash/metrics/desktop_task_switch_metric_recorder.cc b/ash/metrics/desktop_task_switch_metric_recorder.cc
index 893606678b531e551c867ebb31b33e2f3a413757..2c0a9cc85c8c4f4eda76ecfc8576e22959224f84 100644
--- a/ash/metrics/desktop_task_switch_metric_recorder.cc
+++ b/ash/metrics/desktop_task_switch_metric_recorder.cc
@@ -4,7 +4,7 @@
#include "ash/metrics/desktop_task_switch_metric_recorder.h"
-#include "ash/metrics/user_metrics_recorder.h"
+#include "ash/common/wm_shell.h"
#include "ash/shell.h"
#include "ash/wm/window_util.h"
#include "ui/wm/public/activation_client.h"
@@ -28,8 +28,7 @@ void DesktopTaskSwitchMetricRecorder::OnWindowActivated(
if (last_active_task_window_ != gained_active &&
reason == aura::client::ActivationChangeObserver::ActivationReason::
INPUT_EVENT) {
- Shell::GetInstance()->metrics()->RecordUserMetricsAction(
- UMA_DESKTOP_SWITCH_TASK);
+ WmShell::Get()->RecordUserMetricsAction(UMA_DESKTOP_SWITCH_TASK);
}
last_active_task_window_ = gained_active;
}
« no previous file with comments | « ash/frame/caption_buttons/frame_size_button.cc ('k') | ash/shelf/shelf_button_pressed_metric_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698