Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(337)

Unified Diff: ui/views/win/hwnd_message_handler.cc

Issue 287563006: Attempt at fixing crash where compositor is null (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/win/hwnd_message_handler.cc
diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc
index ec3cacf4c35b1652148bf63cd890bef511a8f3f6..b0edaed00fbabac5388b06f6a85907994127cf75 100644
--- a/ui/views/win/hwnd_message_handler.cc
+++ b/ui/views/win/hwnd_message_handler.cc
@@ -911,10 +911,9 @@ LRESULT HWNDMessageHandler::OnWndProc(UINT message,
if (!::IsWindow(window))
return result;
- if (delegate_)
+ if (delegate_) {
delegate_->PostHandleMSG(message, w_param, l_param);
- if (message == WM_NCDESTROY) {
- if (delegate_)
+ if (message == WM_NCDESTROY)
delegate_->HandleDestroyed();
}
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698