| Index: chrome/browser/extensions/api/proxy/proxy_api_helpers.cc
|
| diff --git a/chrome/browser/extensions/api/proxy/proxy_api_helpers.cc b/chrome/browser/extensions/api/proxy/proxy_api_helpers.cc
|
| index 64a4282c836cb962f7f8869c0cfbee9651517a80..54f935767598ca20b8ee32bd63b4d8f2df4e1301 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;
|
|
|