| Index: net/base/host_port_pair.cc
|
| diff --git a/net/base/host_port_pair.cc b/net/base/host_port_pair.cc
|
| index 441a35965d8f4fa7e93a8b323d1a4ffca19d1d20..b03ee679ed7d62f722a4c371e50d2cdf706ba836 100644
|
| --- a/net/base/host_port_pair.cc
|
| +++ b/net/base/host_port_pair.cc
|
| @@ -38,7 +38,7 @@ HostPortPair HostPortPair::FromString(const std::string& str) {
|
| if (key_port.size() != 2)
|
| return HostPortPair();
|
| int port;
|
| - if (!ParseNonNegativeDecimalInt(key_port[1], &port))
|
| + if (!ParseIntegerBase10(key_port[1], ParseInteger::DISALLOW_NEGATIVE, &port))
|
| return HostPortPair();
|
| if (!IsPortValid(port))
|
| return HostPortPair();
|
|
|