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

Unified Diff: ash/shelf/shelf_button_pressed_metric_tracker.cc

Issue 2808723004: Renames WmShell to ShellPort (Closed)
Patch Set: feedback Created 3 years, 8 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/shelf/shelf_button_pressed_metric_tracker.cc
diff --git a/ash/shelf/shelf_button_pressed_metric_tracker.cc b/ash/shelf/shelf_button_pressed_metric_tracker.cc
index e4973d4edb201fa4d64934705a5c7e2da8c4c7f4..08a93e1be3dd65d2a0c9c9949dbe2c24d2e85cdd 100644
--- a/ash/shelf/shelf_button_pressed_metric_tracker.cc
+++ b/ash/shelf/shelf_button_pressed_metric_tracker.cc
@@ -4,7 +4,7 @@
#include "ash/shelf/shelf_button_pressed_metric_tracker.h"
-#include "ash/wm_shell.h"
+#include "ash/shell_port.h"
#include "base/metrics/histogram_macros.h"
#include "base/time/default_tick_clock.h"
#include "ui/views/controls/button/button.h"
@@ -48,10 +48,10 @@ void ShelfButtonPressedMetricTracker::ButtonPressed(
void ShelfButtonPressedMetricTracker::RecordButtonPressedSource(
const ui::Event& event) {
if (event.IsMouseEvent()) {
- WmShell::Get()->RecordUserMetricsAction(
+ ShellPort::Get()->RecordUserMetricsAction(
UMA_LAUNCHER_BUTTON_PRESSED_WITH_MOUSE);
} else if (event.IsGestureEvent()) {
- WmShell::Get()->RecordUserMetricsAction(
+ ShellPort::Get()->RecordUserMetricsAction(
UMA_LAUNCHER_BUTTON_PRESSED_WITH_TOUCH);
}
}
@@ -63,13 +63,13 @@ void ShelfButtonPressedMetricTracker::RecordButtonPressedAction(
case SHELF_ACTION_APP_LIST_SHOWN:
break;
case SHELF_ACTION_NEW_WINDOW_CREATED:
- WmShell::Get()->RecordUserMetricsAction(UMA_LAUNCHER_LAUNCH_TASK);
+ ShellPort::Get()->RecordUserMetricsAction(UMA_LAUNCHER_LAUNCH_TASK);
break;
case SHELF_ACTION_WINDOW_ACTIVATED:
- WmShell::Get()->RecordUserMetricsAction(UMA_LAUNCHER_SWITCH_TASK);
+ ShellPort::Get()->RecordUserMetricsAction(UMA_LAUNCHER_SWITCH_TASK);
break;
case SHELF_ACTION_WINDOW_MINIMIZED:
- WmShell::Get()->RecordUserMetricsAction(UMA_LAUNCHER_MINIMIZE_TASK);
+ ShellPort::Get()->RecordUserMetricsAction(UMA_LAUNCHER_MINIMIZE_TASK);
break;
}
}

Powered by Google App Engine
This is Rietveld 408576698