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

Unified Diff: components/policy/core/common/cloud/cloud_policy_validator.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
« no previous file with comments | « components/omnibox/autocomplete_match_type.cc ('k') | components/proximity_auth/wire_message.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/core/common/cloud/cloud_policy_validator.cc
diff --git a/components/policy/core/common/cloud/cloud_policy_validator.cc b/components/policy/core/common/cloud/cloud_policy_validator.cc
index f7c32a1f0b5ebe8e4ab98fe3f2142683cd24509b..26cea609f330c44940cbd31c8bdbe0df8a5f04ee 100644
--- a/components/policy/core/common/cloud/cloud_policy_validator.cc
+++ b/components/policy/core/common/cloud/cloud_policy_validator.cc
@@ -36,8 +36,10 @@ const uint8 kSHA256SignatureAlgorithm[] = {
0xf7, 0x0d, 0x01, 0x01, 0x0b, 0x05, 0x00
};
-COMPILE_ASSERT(sizeof(kSHA256SignatureAlgorithm) ==
- sizeof(kSHA1SignatureAlgorithm), invalid_algorithm_size);
+static_assert(sizeof(kSHA256SignatureAlgorithm) ==
+ sizeof(kSHA1SignatureAlgorithm),
+ "kSHA256SignatureAlgorithm must be the same size as "
+ "kSHA1SignatureAlgorithm");
const int kSignatureAlgorithmSize = sizeof(kSHA1SignatureAlgorithm);
« no previous file with comments | « components/omnibox/autocomplete_match_type.cc ('k') | components/proximity_auth/wire_message.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698