| Index: net/proxy/proxy_bypass_rules.cc
|
| diff --git a/net/proxy/proxy_bypass_rules.cc b/net/proxy/proxy_bypass_rules.cc
|
| index eafaa98cc0593a82608be9d6d49ff99f6d99261b..963f6b0ec604b82961ba2980127600f13ff7b4ec 100644
|
| --- a/net/proxy/proxy_bypass_rules.cc
|
| +++ b/net/proxy/proxy_bypass_rules.cc
|
| @@ -319,8 +319,8 @@ bool ProxyBypassRules::AddRuleFromStringInternal(
|
| std::string::size_type pos_colon = raw.rfind(':');
|
| port = -1;
|
| if (pos_colon != std::string::npos) {
|
| - if (!ParseNonNegativeDecimalInt(
|
| - base::StringPiece(raw.begin() + pos_colon + 1, raw.end()), &port) ||
|
| + if (!ParseInt32(base::StringPiece(raw.begin() + pos_colon + 1, raw.end()),
|
| + ParseIntFormat::NON_NEGATIVE, &port) ||
|
| port > 0xFFFF) {
|
| return false; // Port was invalid.
|
| }
|
|
|