diff options
author | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-02 21:49:40 +0000 |
---|---|---|
committer | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-02 21:49:40 +0000 |
commit | fae7669f438f42169f9da35406d9b4cef6b541fd (patch) | |
tree | 3b13582d0f9ed536194e9fc36818ebf1b31b8639 /net/proxy/proxy_server.cc | |
parent | abd701d7cd8b601b5f13c6ff2d56eccf9f22fa64 (diff) | |
download | chromium_src-fae7669f438f42169f9da35406d9b4cef6b541fd.zip chromium_src-fae7669f438f42169f9da35406d9b4cef6b541fd.tar.gz chromium_src-fae7669f438f42169f9da35406d9b4cef6b541fd.tar.bz2 |
Address a TODO: use HostPortPair rather than a naked host string.
Review URL: http://codereview.chromium.org/3047033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54613 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/proxy/proxy_server.cc')
-rw-r--r-- | net/proxy/proxy_server.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/proxy/proxy_server.cc b/net/proxy/proxy_server.cc index 792a47d..f172a6b 100644 --- a/net/proxy/proxy_server.cc +++ b/net/proxy/proxy_server.cc @@ -70,8 +70,8 @@ std::string HostNoBrackets(const std::string& host) { } // namespace -ProxyServer::ProxyServer(Scheme scheme, const std::string& host, int port) - : scheme_(scheme), host_port_pair_(HostNoBrackets(host), port) { +ProxyServer::ProxyServer(Scheme scheme, const HostPortPair& host_port_pair) + : scheme_(scheme), host_port_pair_(host_port_pair) { } const HostPortPair& ProxyServer::host_port_pair() const { @@ -222,7 +222,7 @@ ProxyServer ProxyServer::FromSchemeHostAndPort( if (port == -1) port = GetDefaultPortForScheme(scheme); - return ProxyServer(scheme, host, port); + return ProxyServer(scheme, HostPortPair(HostNoBrackets(host), port)); } } // namespace net |