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

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: merge 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
« no previous file with comments | « ash/aura/wm_shell_aura.h ('k') | ash/common/metrics/task_switch_source.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/aura/wm_shell_aura.cc
diff --git a/ash/aura/wm_shell_aura.cc b/ash/aura/wm_shell_aura.cc
index 851e6365af4233265a8c94f360b9beebbb4c7add..3908dad13ef87617561c0a48093cb7b995979f1a 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"
@@ -132,7 +133,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(
« no previous file with comments | « ash/aura/wm_shell_aura.h ('k') | ash/common/metrics/task_switch_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698