Index: extensions/common/url_pattern.cc |
diff --git a/extensions/common/url_pattern.cc b/extensions/common/url_pattern.cc |
index 71b522e1cd0d623b9f0a1b5c629b70b2f8752dfd..40142cf79cbbc2e573bb6d8a5b5a4e2b5cd860c3 100644 |
--- a/extensions/common/url_pattern.cc |
+++ b/extensions/common/url_pattern.cc |
@@ -43,8 +43,8 @@ const int kValidSchemeMasks[] = { |
URLPattern::SCHEME_FILESYSTEM, |
}; |
-COMPILE_ASSERT(arraysize(kValidSchemes) == arraysize(kValidSchemeMasks), |
- must_keep_these_arrays_in_sync); |
+static_assert(arraysize(kValidSchemes) == arraysize(kValidSchemeMasks), |
+ "must keep these arrays in sync"); |
const char kParseSuccess[] = "Success."; |
const char kParseErrorMissingSchemeSeparator[] = "Missing scheme separator."; |
@@ -69,8 +69,8 @@ const char* const kParseResultMessages[] = { |
kParseErrorInvalidHost, |
}; |
-COMPILE_ASSERT(URLPattern::NUM_PARSE_RESULTS == arraysize(kParseResultMessages), |
- must_add_message_for_each_parse_result); |
+static_assert(URLPattern::NUM_PARSE_RESULTS == arraysize(kParseResultMessages), |
+ "must add message for each parse result"); |
const char kPathSeparator[] = "/"; |