Index: ui/views/widget/native_widget_aura.cc |
diff --git a/ui/views/widget/native_widget_aura.cc b/ui/views/widget/native_widget_aura.cc |
index 04af1cea6c204429f878c2efbe6f7f0103987e3b..fd9db9387b805bcbe730626c857d045e15d6f004 100644 |
--- a/ui/views/widget/native_widget_aura.cc |
+++ b/ui/views/widget/native_widget_aura.cc |
@@ -903,7 +903,11 @@ BOOL CALLBACK WindowCallbackProc(HWND hwnd, LPARAM lParam) { |
if (root_window) { |
Widget* widget = Widget::GetWidgetForNativeView(root_window); |
if (widget && widget->is_secondary_widget()) |
- widget->Close(); |
+ // To avoid the delay in shutdown caused by using Close which may wait |
+ // for animations, use CloseNow. Because this is only used on secondary |
+ // widgets it seems relatively safe to skip the extra processing of |
+ // Close. |
+ widget->CloseNow(); |
} |
return TRUE; |
} |