| Index: net/proxy/proxy_bypass_rules.cc
|
| diff --git a/net/proxy/proxy_bypass_rules.cc b/net/proxy/proxy_bypass_rules.cc
|
| index 9dc403150baedd8ee399b96d33a8b86e810b4510..cec4fb584950de76e06da62783ac0df884cde3bc 100644
|
| --- a/net/proxy/proxy_bypass_rules.cc
|
| +++ b/net/proxy/proxy_bypass_rules.cc
|
| @@ -328,12 +328,13 @@ bool ProxyBypassRules::AddRuleFromStringInternal(
|
|
|
| // Special-case hostnames that begin with a period.
|
| // For example, we remap ".google.com" --> "*.google.com".
|
| - if (base::StartsWithASCII(raw, ".", false))
|
| + if (base::StartsWith(raw, ".", base::CompareCase::SENSITIVE))
|
| raw = "*" + raw;
|
|
|
| // If suffix matching was asked for, make sure the pattern starts with a
|
| // wildcard.
|
| - if (use_hostname_suffix_matching && !base::StartsWithASCII(raw, "*", false))
|
| + if (use_hostname_suffix_matching &&
|
| + !base::StartsWith(raw, "*", base::CompareCase::SENSITIVE))
|
| raw = "*" + raw;
|
|
|
| return AddRuleForHostname(scheme, raw, port);
|
|
|