Index: base/message_loop/message_loop.h |
diff --git a/base/message_loop/message_loop.h b/base/message_loop/message_loop.h |
index 77edfdb1331c0b83b095b06962a45dd261faa9d1..470a8d0dbe76bd7930d8e69ec1ad89a25a6a1d9b 100644 |
--- a/base/message_loop/message_loop.h |
+++ b/base/message_loop/message_loop.h |
@@ -601,8 +601,8 @@ class BASE_EXPORT MessageLoopForUI : public MessageLoop { |
// Do not add any member variables to MessageLoopForUI! This is important b/c |
// MessageLoopForUI is often allocated via MessageLoop(TYPE_UI). Any extra |
// data that you need should be stored on the MessageLoop's pump_ instance. |
-COMPILE_ASSERT(sizeof(MessageLoop) == sizeof(MessageLoopForUI), |
- MessageLoopForUI_should_not_have_extra_member_variables); |
+static_assert(sizeof(MessageLoop) == sizeof(MessageLoopForUI), |
+ "MessageLoopForUI_should_not_have_extra_member_variables"); |
#endif // !defined(OS_NACL) |
@@ -682,8 +682,8 @@ class BASE_EXPORT MessageLoopForIO : public MessageLoop { |
// Do not add any member variables to MessageLoopForIO! This is important b/c |
// MessageLoopForIO is often allocated via MessageLoop(TYPE_IO). Any extra |
// data that you need should be stored on the MessageLoop's pump_ instance. |
-COMPILE_ASSERT(sizeof(MessageLoop) == sizeof(MessageLoopForIO), |
- MessageLoopForIO_should_not_have_extra_member_variables); |
+static_assert(sizeof(MessageLoop) == sizeof(MessageLoopForIO), |
+ "MessageLoopForIO_should_not_have_extra_member_variables"); |
} // namespace base |