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

Unified Diff: chrome/common/crash_keys.cc

Issue 812503003: replace COMPILE_ASSERT with static_assert in chrome/common/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | chrome/common/extensions/api/webstore/webstore_api_constants.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/crash_keys.cc
diff --git a/chrome/common/crash_keys.cc b/chrome/common/crash_keys.cc
index b15154b8359c50201ff910bc0d9d87436b632ef4..b0ee3d5de6a620912ebc4a0e18339ffa37c5238a 100644
--- a/chrome/common/crash_keys.cc
+++ b/chrome/common/crash_keys.cc
@@ -48,11 +48,11 @@ static const size_t kSingleChunkLength = 63;
#endif
// Guarantees for crash key sizes.
-COMPILE_ASSERT(kSmallSize <= kSingleChunkLength,
- crash_key_chunk_size_too_small);
+static_assert(kSmallSize <= kSingleChunkLength,
+ "crash key chunk size too small");
#if defined(OS_MACOSX)
-COMPILE_ASSERT(kMediumSize <= kSingleChunkLength,
- mac_has_medium_size_crash_key_chunks);
+static_assert(kMediumSize <= kSingleChunkLength,
+ "mac has medium size crash key chunks");
#endif
const char kClientId[] = "guid";
« no previous file with comments | « no previous file | chrome/common/extensions/api/webstore/webstore_api_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698