Index: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
index 2809f02007c756fb69130be258751e872d18d392..2ee428e54079273cf4aaa1bf728ae398f1877547 100644 |
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
@@ -1102,7 +1102,8 @@ void DesktopWindowTreeHostX11::InitX11Window( |
// Likewise, the X server needs to know this window's pid so it knows which |
// program to kill if the window hangs. |
// XChangeProperty() expects "pid" to be long. |
- COMPILE_ASSERT(sizeof(long) >= sizeof(pid_t), pid_t_bigger_than_long); |
+ static_assert(sizeof(long) >= sizeof(pid_t), |
+ "pid_t should not be larger than long"); |
long pid = getpid(); |
XChangeProperty(xdisplay_, |
xwindow_, |