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

Unified Diff: net/proxy/proxy_config_source.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/http/http_server_properties.cc ('k') | net/quic/crypto/aes_128_gcm_12_decrypter_nss.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/proxy/proxy_config_source.cc
diff --git a/net/proxy/proxy_config_source.cc b/net/proxy/proxy_config_source.cc
index f47c2f606240cfc3381204e09da8118fe700d6da..80e2735d748d5aadf7776589b67527fe0fe97cfc 100644
--- a/net/proxy/proxy_config_source.cc
+++ b/net/proxy/proxy_config_source.cc
@@ -22,8 +22,8 @@ const char* kSourceNames[] = {
"CUSTOM",
"TEST"
};
-COMPILE_ASSERT(arraysize(kSourceNames) == NUM_PROXY_CONFIG_SOURCES,
- source_names_incorrect_size);
+static_assert(arraysize(kSourceNames) == NUM_PROXY_CONFIG_SOURCES,
+ "kSourceNames has incorrect size");
} // namespace
« no previous file with comments | « net/http/http_server_properties.cc ('k') | net/quic/crypto/aes_128_gcm_12_decrypter_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698