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 006c5d89ef7a7d8e4e1c1f7a6cdaa3829952dc25..36b0bd587a4ee307614c6f9243b00b6eeb989f2a 100644 |
--- a/ash/wm/panels/panel_window_event_handler.cc |
+++ b/ash/wm/panels/panel_window_event_handler.cc |
@@ -26,6 +26,7 @@ void PanelWindowEventHandler::OnMouseEvent(ui::MouseEvent* event) { |
event->type() == ui::ET_MOUSE_PRESSED && |
event->flags() & ui::EF_IS_DOUBLE_CLICK && |
event->IsOnlyLeftMouseButton() && |
+ target->delegate() && |
Nina
2015/01/09 15:43:49
Without this change, this code crashed when handli
|
target->delegate()->GetNonClientComponent(event->location()) == |
HTCAPTION) { |
ash::Shell::GetInstance()->metrics()->RecordUserMetricsAction( |
@@ -41,6 +42,7 @@ void PanelWindowEventHandler::OnGestureEvent(ui::GestureEvent* event) { |
if (!event->handled() && |
event->type() == ui::ET_GESTURE_TAP && |
event->details().tap_count() == 2 && |
+ target->delegate() && |
Nina
2015/01/09 15:43:49
Same as L29
|
target->delegate()->GetNonClientComponent(event->location()) == |
HTCAPTION) { |
ash::Shell::GetInstance()->metrics()->RecordUserMetricsAction( |