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

Unified Diff: ash/aura/wm_shell_aura.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/aura/wm_shell_aura.cc
diff --git a/ash/aura/wm_shell_aura.cc b/ash/aura/wm_shell_aura.cc
index 5ac8a64f76a0a59ba18ad9af27b0bb26ee19062c..249248e91b9713046c3a473292fe74bfaabb30f3 100644
--- a/ash/aura/wm_shell_aura.cc
+++ b/ash/aura/wm_shell_aura.cc
@@ -17,6 +17,7 @@
#include "ash/common/wm_display_observer.h"
#include "ash/display/display_manager.h"
#include "ash/display/window_tree_host_manager.h"
+#include "ash/metrics/task_switch_metrics_recorder.h"
#include "ash/shell.h"
#include "ash/wm/drag_window_resizer.h"
#include "ash/wm/maximize_mode/maximize_mode_event_handler_aura.h"
@@ -131,7 +132,12 @@ std::vector<WmWindow*> WmShellAura::GetAllRootWindows() {
}
void WmShellAura::RecordUserMetricsAction(UserMetricsAction action) {
- return Shell::GetInstance()->metrics()->RecordUserMetricsAction(action);
+ Shell::GetInstance()->metrics()->RecordUserMetricsAction(action);
+}
+
+void WmShellAura::RecordTaskSwitchMetric(TaskSwitchSource source) {
+ Shell::GetInstance()->metrics()->task_switch_metrics_recorder().OnTaskSwitch(
+ source);
}
std::unique_ptr<WindowResizer> WmShellAura::CreateDragWindowResizer(

Powered by Google App Engine
This is Rietveld 408576698