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; |
} |
} |