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

Unified Diff: chrome/browser/predictors/autocomplete_action_predictor.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
« no previous file with comments | « chrome/browser/mac/relauncher.cc ('k') | chrome/browser/prefs/proxy_prefs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/predictors/autocomplete_action_predictor.cc
diff --git a/chrome/browser/predictors/autocomplete_action_predictor.cc b/chrome/browser/predictors/autocomplete_action_predictor.cc
index ff7b0fe7b00723743f015e2ed0841c852ac89a86..b5e3aa81876d56f6e0938c6aac362a0783bc76b4 100644
--- a/chrome/browser/predictors/autocomplete_action_predictor.cc
+++ b/chrome/browser/predictors/autocomplete_action_predictor.cc
@@ -44,9 +44,9 @@ const float kConfidenceCutoff[] = {
0.5f
};
-COMPILE_ASSERT(arraysize(kConfidenceCutoff) ==
- predictors::AutocompleteActionPredictor::LAST_PREDICT_ACTION,
- ConfidenceCutoff_count_mismatch);
+static_assert(arraysize(kConfidenceCutoff) ==
+ predictors::AutocompleteActionPredictor::LAST_PREDICT_ACTION,
+ "kConfidenceCutoff count should match LAST_PREDICT_ACTION");
const size_t kMinimumUserTextLength = 1;
const int kMinimumNumberOfHits = 3;
« no previous file with comments | « chrome/browser/mac/relauncher.cc ('k') | chrome/browser/prefs/proxy_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698