Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Unified Diff: components/html_viewer/html_frame_properties.cc

Issue 1468803002: Switch to static_assert. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@assert1
Patch Set: message cleanup Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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());
« no previous file with comments | « components/html_viewer/blink_text_input_type_converters.cc ('k') | components/html_viewer/web_socket_handle_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698