Index: components/variations/metrics_util.cc |
diff --git a/components/variations/metrics_util.cc b/components/variations/metrics_util.cc |
index 031c3d37a31311794a33aef7bc09497a0e0fa5f3..41b2df3854a94866994fd723cfeb78e014346b66 100644 |
--- a/components/variations/metrics_util.cc |
+++ b/components/variations/metrics_util.cc |
@@ -18,7 +18,7 @@ uint32 HashName(const std::string& name) { |
sha1_hash); |
uint32 bits; |
- COMPILE_ASSERT(sizeof(bits) < sizeof(sha1_hash), need_more_data); |
+ static_assert(sizeof(bits) < sizeof(sha1_hash), "more data required"); |
memcpy(&bits, sha1_hash, sizeof(bits)); |
return base::ByteSwapToLE32(bits); |