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

Unified Diff: chrome/browser/prefs/proxy_prefs.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/prefs/proxy_prefs.cc
diff --git a/chrome/browser/prefs/proxy_prefs.cc b/chrome/browser/prefs/proxy_prefs.cc
index 3a06a2baf506a99e765f237b64e90d42a6bace99..04785ec2de6be4132e231251f2ca9c9fcfccb88f 100644
--- a/chrome/browser/prefs/proxy_prefs.cc
+++ b/chrome/browser/prefs/proxy_prefs.cc
@@ -19,8 +19,8 @@ const char* kProxyModeNames[] = { kDirectProxyModeName,
kFixedServersProxyModeName,
kSystemProxyModeName };
-COMPILE_ASSERT(arraysize(kProxyModeNames) == kModeCount,
- kProxyModeNames_must_have_size_of_NUM_MODES);
+static_assert(arraysize(kProxyModeNames) == kModeCount,
+ "kProxyModeNames must have kModeCount elements");
} // namespace
« no previous file with comments | « chrome/browser/predictors/autocomplete_action_predictor.cc ('k') | chrome/browser/prerender/prerender_events.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698