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

Unified Diff: net/http/http_auth.cc

Issue 826973002: replace COMPILE_ASSERT with static_assert in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: apply fixups Created 5 years, 11 months 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 | « net/dns/dns_session.cc ('k') | net/http/http_cache_transaction.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_auth.cc
diff --git a/net/http/http_auth.cc b/net/http/http_auth.cc
index 4c6d3e8dda309e7d29484a16e413767dfa8cb201..35251140f4763431900696d82d451dc5fc08bb9c 100644
--- a/net/http/http_auth.cc
+++ b/net/http/http_auth.cc
@@ -137,8 +137,8 @@ const char* HttpAuth::SchemeToString(Scheme scheme) {
"spdyproxy",
"mock",
};
- COMPILE_ASSERT(arraysize(kSchemeNames) == AUTH_SCHEME_MAX,
- http_auth_scheme_names_incorrect_size);
+ static_assert(arraysize(kSchemeNames) == AUTH_SCHEME_MAX,
+ "http auth scheme names incorrect size");
if (scheme < AUTH_SCHEME_BASIC || scheme >= AUTH_SCHEME_MAX) {
NOTREACHED();
return "invalid_scheme";
« no previous file with comments | « net/dns/dns_session.cc ('k') | net/http/http_cache_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698