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

Unified Diff: ash/common/wm/workspace/workspace_window_resizer.cc

Issue 2063333002: mash: Move all ash UMA metrics to //ash/common/metrics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/common/wm/wm_user_metrics_action.h ('k') | ash/common/wm_shell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/workspace/workspace_window_resizer.cc
diff --git a/ash/common/wm/workspace/workspace_window_resizer.cc b/ash/common/wm/workspace/workspace_window_resizer.cc
index f26ba3f314af458777dd1e5d6edd275ac94697e0..216f091479cec77504e1f86d37a7ccfa054cf9fd 100644
--- a/ash/common/wm/workspace/workspace_window_resizer.cc
+++ b/ash/common/wm/workspace/workspace_window_resizer.cc
@@ -9,6 +9,7 @@
#include <utility>
#include <vector>
+#include "ash/common/metrics/user_metrics_action.h"
#include "ash/common/shell_window_ids.h"
#include "ash/common/wm/default_window_resizer.h"
#include "ash/common/wm/dock/docked_window_layout_manager.h"
@@ -18,7 +19,6 @@
#include "ash/common/wm/window_state.h"
#include "ash/common/wm/wm_event.h"
#include "ash/common/wm/wm_screen_util.h"
-#include "ash/common/wm/wm_user_metrics_action.h"
#include "ash/common/wm/workspace/phantom_window_controller.h"
#include "ash/common/wm/workspace/two_step_edge_cycler.h"
#include "ash/common/wm_lookup.h"
@@ -421,10 +421,9 @@ void WorkspaceWindowResizer::CompleteDrag() {
? wm::WM_EVENT_SNAP_LEFT
: wm::WM_EVENT_SNAP_RIGHT);
window_state()->OnWMEvent(&event);
- shell_->RecordUserMetricsAction(
- snap_type_ == SNAP_LEFT
- ? wm::WmUserMetricsAction::DRAG_MAXIMIZE_LEFT
- : wm::WmUserMetricsAction::DRAG_MAXIMIZE_RIGHT);
+ shell_->RecordUserMetricsAction(snap_type_ == SNAP_LEFT
+ ? UMA_DRAG_MAXIMIZE_LEFT
+ : UMA_DRAG_MAXIMIZE_RIGHT);
snapped = true;
}
}
« no previous file with comments | « ash/common/wm/wm_user_metrics_action.h ('k') | ash/common/wm_shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698