| 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..1516513f646d03a1a3c44584e9d049fca41b4b5d 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], false, &port, nullptr))
|
| return HostPortPair();
|
| if (!IsPortValid(port))
|
| return HostPortPair();
|
|
|