Index: ipc/unix_domain_socket_util.cc |
diff --git a/ipc/unix_domain_socket_util.cc b/ipc/unix_domain_socket_util.cc |
index d1ddd83e5cee805c4676dc2e3a674a31badf723f..74053445b7aa0130e4a98ff2669c98df6c3fe80c 100644 |
--- a/ipc/unix_domain_socket_util.cc |
+++ b/ipc/unix_domain_socket_util.cc |
@@ -20,8 +20,8 @@ |
namespace IPC { |
// Verify that kMaxSocketNameLength is a decent size. |
-COMPILE_ASSERT(sizeof(((sockaddr_un*)0)->sun_path) >= kMaxSocketNameLength, |
- BAD_SUN_PATH_LENGTH); |
+static_assert(sizeof(((sockaddr_un*)0)->sun_path) >= kMaxSocketNameLength, |
+ "sun_path is too long."); |
namespace { |