| Index: ash/wm/panels/panel_window_event_handler.cc
|
| diff --git a/ash/wm/panels/panel_window_event_handler.cc b/ash/wm/panels/panel_window_event_handler.cc
|
| index 5ba0a2e7cfe68ef9b92b65c724ef2626b10cf62d..87b8f388d2814b2ddc2a6c1bfa8740ceb94f8396 100644
|
| --- a/ash/wm/panels/panel_window_event_handler.cc
|
| +++ b/ash/wm/panels/panel_window_event_handler.cc
|
| @@ -4,9 +4,9 @@
|
|
|
| #include "ash/wm/panels/panel_window_event_handler.h"
|
|
|
| +#include "ash/shell_port.h"
|
| #include "ash/wm/window_state.h"
|
| #include "ash/wm/window_state_aura.h"
|
| -#include "ash/wm_shell.h"
|
| #include "ui/aura/window.h"
|
| #include "ui/aura/window_delegate.h"
|
| #include "ui/base/hit_test.h"
|
| @@ -25,7 +25,7 @@ void PanelWindowEventHandler::OnMouseEvent(ui::MouseEvent* event) {
|
| event->IsOnlyLeftMouseButton() &&
|
| target->delegate()->GetNonClientComponent(event->location()) ==
|
| HTCAPTION) {
|
| - WmShell::Get()->RecordUserMetricsAction(UMA_PANEL_MINIMIZE_CAPTION_CLICK);
|
| + ShellPort::Get()->RecordUserMetricsAction(UMA_PANEL_MINIMIZE_CAPTION_CLICK);
|
| wm::GetWindowState(target)->Minimize();
|
| event->StopPropagation();
|
| return;
|
| @@ -38,7 +38,8 @@ void PanelWindowEventHandler::OnGestureEvent(ui::GestureEvent* event) {
|
| event->details().tap_count() == 2 &&
|
| target->delegate()->GetNonClientComponent(event->location()) ==
|
| HTCAPTION) {
|
| - WmShell::Get()->RecordUserMetricsAction(UMA_PANEL_MINIMIZE_CAPTION_GESTURE);
|
| + ShellPort::Get()->RecordUserMetricsAction(
|
| + UMA_PANEL_MINIMIZE_CAPTION_GESTURE);
|
| wm::GetWindowState(target)->Minimize();
|
| event->StopPropagation();
|
| return;
|
|
|