diff options
Diffstat (limited to 'chrome/browser/extensions/api/proxy/proxy_api_helpers.cc')
-rw-r--r-- | chrome/browser/extensions/api/proxy/proxy_api_helpers.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/extensions/api/proxy/proxy_api_helpers.cc b/chrome/browser/extensions/api/proxy/proxy_api_helpers.cc index 64a4282..54f9357 100644 --- a/chrome/browser/extensions/api/proxy/proxy_api_helpers.cc +++ b/chrome/browser/extensions/api/proxy/proxy_api_helpers.cc @@ -220,7 +220,7 @@ bool GetProxyRulesStringFromExtensionPref( } } - COMPILE_ASSERT(keys::SCHEME_ALL == 0, singleProxy_must_be_first_option); + static_assert(keys::SCHEME_ALL == 0, "SCHEME_ALL must be the first value"); // Handle case that only singleProxy is specified. if (has_proxy[keys::SCHEME_ALL]) { @@ -409,9 +409,10 @@ base::DictionaryValue* CreateProxyRulesDict( break; } - // If we add a new scheme some time, we need to also store a new dictionary + // If we add a new scheme sometime, we need to also store a new dictionary // representing this scheme in the code above. - COMPILE_ASSERT(keys::SCHEME_MAX == 4, SCHEME_FORGOTTEN); + static_assert(keys::SCHEME_MAX == 4, + "rules need to be updated along with schemes"); if (proxy_config.HasBypassList()) { std::string bypass_list_string; |