Index: components/html_viewer/html_frame_properties.cc |
diff --git a/components/html_viewer/html_frame_properties.cc b/components/html_viewer/html_frame_properties.cc |
index 9d6ac9246d36353b2c637cc7705479b981dece9d..d2ce98d2722e45439043373a399ae1189bb599c8 100644 |
--- a/components/html_viewer/html_frame_properties.cc |
+++ b/components/html_viewer/html_frame_properties.cc |
@@ -118,8 +118,8 @@ url::Origin FrameOriginFromClientProperty(const mojo::Array<uint8_t>& data) { |
CHECK(data.size()); |
CHECK(data.size() < static_cast<size_t>(std::numeric_limits<int>::max())); |
- COMPILE_ASSERT(sizeof(uint8_t) == sizeof(unsigned char), |
- uint8_t_same_size_as_unsigned_char); |
+ static_assert(sizeof(uint8_t) == sizeof(unsigned char), |
+ "uint8_t must be the same size as unsigned char"); |
const base::Pickle pickle(reinterpret_cast<const char*>(&(data.front())), |
static_cast<int>(data.size())); |
CHECK(pickle.data()); |