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

Unified Diff: components/proximity_auth/wire_message.cc

Issue 794683005: replace COMPILE_ASSERT with static_assert in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: formatting fixup Created 6 years 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/proximity_auth/wire_message.cc
diff --git a/components/proximity_auth/wire_message.cc b/components/proximity_auth/wire_message.cc
index 604c026566a77115b3508a7ca7c987660bbae386..5b64da9eac7b4372d0d727f1af47142c5657ad26 100644
--- a/components/proximity_auth/wire_message.cc
+++ b/components/proximity_auth/wire_message.cc
@@ -41,7 +41,7 @@ bool ParseHeader(const std::string& serialized_message,
return false;
}
- COMPILE_ASSERT(kHeaderLength > 2, header_length_too_small);
+ static_assert(kHeaderLength > 2, "kHeaderLength too small");
size_t version = serialized_message[0];
if (version != kExpectedMessageFormatVersion) {
VLOG(1) << "Error: Invalid message version. Got " << version
« no previous file with comments | « components/policy/core/common/cloud/cloud_policy_validator.cc ('k') | components/sessions/serialized_navigation_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698