Chromium Code Reviews| Index: net/proxy/proxy_server.cc |
| diff --git a/net/proxy/proxy_server.cc b/net/proxy/proxy_server.cc |
| index 0b9ba67d897dd0b37215b1500a19896f8f47c6ae..15e74c06ca5ea49a94078414314fdbcb661c6bbc 100644 |
| --- a/net/proxy/proxy_server.cc |
| +++ b/net/proxy/proxy_server.cc |
| @@ -238,7 +238,7 @@ ProxyServer ProxyServer::FromSchemeHostAndPort( |
| if (port == -1) |
| port = GetDefaultPortForScheme(scheme); |
| - host_port_pair = HostPortPair(host, port); |
| + host_port_pair = HostPortPair(host, static_cast<uint16>(port)); |
|
Peter Kasting
2014/11/12 23:54:31
ParseHostAndPort() guarantees that this number wil
|
| } |
| return ProxyServer(scheme, host_port_pair); |