Index: views/window/window_win.cc |
=================================================================== |
--- views/window/window_win.cc (revision 25660) |
+++ views/window/window_win.cc (working copy) |
@@ -1359,21 +1359,7 @@ |
if (!root_view) |
return TRUE; |
- Widget* widget = root_view->GetWidget(); |
- if (!widget) |
- return TRUE; |
- |
- // If the toplevel HWND is a Window, close it if it's identified as a |
- // secondary window. |
- Window* window = widget->GetWindow(); |
- if (window) { |
- if (!window->IsAppWindow()) |
- window->Close(); |
- } else { |
- // If it's not a Window, then close it anyway since it probably is |
- // secondary. |
- widget->Close(); |
- } |
+ Window::CloseSecondaryWidget(root_view->GetWidget()); |
return TRUE; |
} |
} // namespace |