Fix crash on ResetWindowControls with no non-client view
Crash happens when Widget with no non-client view (for example TYPE_WINDOW_FRAMELESS) is being shown on Windows 7 with Aero Glass disabled. This is a regression introduced by https://chromium-review.googlesource.com/924315. ResetWindowControls is called from HWNDMessageHandler::OnSysCommand. Previously it wasn't called if non-client view was null because ShouldHandleSystemCommands returned false in such case. Bug: 189112 Change-Id: Ia12013ab11fd67dd28bcaf5d490c846928569a78 Reviewed-on: https://chromium-review.googlesource.com/960029 Commit-Queue: Tomasz Moniuszko <tmoniuszko@opera.com> Reviewed-by:Michael Wasserman <msw@chromium.org> Cr-Commit-Position: refs/heads/master@{#543350}
Showing
Please register or sign in to comment