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

Unified Diff: chrome/browser/chromeos/policy/consumer_management_service.cc

Issue 815363002: replace COMPILE_ASSERT with static_assert in chrome/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments 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: chrome/browser/chromeos/policy/consumer_management_service.cc
diff --git a/chrome/browser/chromeos/policy/consumer_management_service.cc b/chrome/browser/chromeos/policy/consumer_management_service.cc
index 4caff08f95fbfcfd03aeba7a6fb9891d0433c712..2e64d9b582991b9d04272930b81c24cec968c4a1 100644
--- a/chrome/browser/chromeos/policy/consumer_management_service.cc
+++ b/chrome/browser/chromeos/policy/consumer_management_service.cc
@@ -32,9 +32,9 @@ const char* const kStatusString[] = {
"StatusUnenrolling",
};
-COMPILE_ASSERT(
+static_assert(
arraysize(kStatusString) == policy::ConsumerManagementService::STATUS_LAST,
- "invalid kStatusString array size.");
+ "invalid kStatusString array size");
} // namespace

Powered by Google App Engine
This is Rietveld 408576698