Index: ui/gfx/win/singleton_hwnd.cc |
diff --git a/ui/gfx/win/singleton_hwnd.cc b/ui/gfx/win/singleton_hwnd.cc |
index 814218746a88ef1b561ff7048ee809b0afd7d01a..9b2fc2ee66e8489162516bcf902723cc20c43413 100644 |
--- a/ui/gfx/win/singleton_hwnd.cc |
+++ b/ui/gfx/win/singleton_hwnd.cc |
@@ -31,6 +31,7 @@ SingletonHwnd::SingletonHwnd() { |
if (!base::MessageLoopForUI::IsCurrent()) { |
// Creating this window in (e.g.) a renderer inhibits shutdown on |
// Windows. See http://crbug.com/230122 and http://crbug.com/236039. |
+ LOG(FATAL) << "Cannot create windows on non-UI thread!"; |
Nico
2016/08/29 20:52:41
\o/
|
return; |
} |
WindowImpl::Init(NULL, Rect()); |