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

Unified Diff: chrome/browser/prerender/prerender_origin.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/prerender/prerender_origin.cc
diff --git a/chrome/browser/prerender/prerender_origin.cc b/chrome/browser/prerender/prerender_origin.cc
index 56e6c073aa981679b44d59d93bd5b0256abb33a7..ae8d9acd4257fa3b192f67078c29f1339291c891 100644
--- a/chrome/browser/prerender/prerender_origin.cc
+++ b/chrome/browser/prerender/prerender_origin.cc
@@ -28,8 +28,8 @@ const char* kOriginNames[] = {
"Link Rel Next",
"Max",
};
-COMPILE_ASSERT(arraysize(kOriginNames) == ORIGIN_MAX + 1,
- PrerenderOrigin_name_count_mismatch);
+static_assert(arraysize(kOriginNames) == ORIGIN_MAX + 1,
+ "prerender origin name count mismatch");
} // namespace
« no previous file with comments | « chrome/browser/prerender/prerender_local_predictor.cc ('k') | chrome/browser/profile_resetter/profile_resetter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698