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

Unified Diff: ash/common/shelf/shelf_alignment_menu.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/metrics/user_metrics_action.h ('k') | ash/common/wm/wm_user_metrics_action.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/shelf_alignment_menu.cc
diff --git a/ash/common/shelf/shelf_alignment_menu.cc b/ash/common/shelf/shelf_alignment_menu.cc
index f25bc09450cb3788944a40a7669f1faa27b4fc9f..114a47d847810728e7dcef5a82be0f60851c4974 100644
--- a/ash/common/shelf/shelf_alignment_menu.cc
+++ b/ash/common/shelf/shelf_alignment_menu.cc
@@ -4,9 +4,9 @@
#include "ash/common/shelf/shelf_alignment_menu.h"
+#include "ash/common/metrics/user_metrics_action.h"
#include "ash/common/shelf/shelf_types.h"
#include "ash/common/shelf/wm_shelf.h"
-#include "ash/common/wm/wm_user_metrics_action.h"
#include "ash/common/wm_shell.h"
#include "grit/ash_strings.h"
@@ -57,18 +57,15 @@ void ShelfAlignmentMenu::ExecuteCommand(int command_id, int event_flags) {
WmShell* shell = WmShell::Get();
switch (static_cast<MenuItem>(command_id)) {
case MENU_ALIGN_LEFT:
- shell->RecordUserMetricsAction(
- wm::WmUserMetricsAction::SHELF_ALIGNMENT_SET_LEFT);
+ shell->RecordUserMetricsAction(UMA_SHELF_ALIGNMENT_SET_LEFT);
wm_shelf_->SetAlignment(SHELF_ALIGNMENT_LEFT);
break;
case MENU_ALIGN_BOTTOM:
- shell->RecordUserMetricsAction(
- wm::WmUserMetricsAction::SHELF_ALIGNMENT_SET_BOTTOM);
+ shell->RecordUserMetricsAction(UMA_SHELF_ALIGNMENT_SET_BOTTOM);
wm_shelf_->SetAlignment(SHELF_ALIGNMENT_BOTTOM);
break;
case MENU_ALIGN_RIGHT:
- shell->RecordUserMetricsAction(
- wm::WmUserMetricsAction::SHELF_ALIGNMENT_SET_RIGHT);
+ shell->RecordUserMetricsAction(UMA_SHELF_ALIGNMENT_SET_RIGHT);
wm_shelf_->SetAlignment(SHELF_ALIGNMENT_RIGHT);
break;
}
« no previous file with comments | « ash/common/metrics/user_metrics_action.h ('k') | ash/common/wm/wm_user_metrics_action.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698