Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Unified Diff: net/base/host_port_pair.cc

Issue 754433003: Update from https://crrev.com/305340 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/host_mapping_rules.cc ('k') | net/base/ip_endpoint.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/host_port_pair.cc
diff --git a/net/base/host_port_pair.cc b/net/base/host_port_pair.cc
index 18cf9f5e7b2de6d14df0a957d0583b9dafac1947..1570bbb5718606e25057f07069b16d194aaaba6f 100644
--- a/net/base/host_port_pair.cc
+++ b/net/base/host_port_pair.cc
@@ -21,7 +21,8 @@ HostPortPair::HostPortPair(const std::string& in_host, uint16 in_port)
// static
HostPortPair HostPortPair::FromURL(const GURL& url) {
- return HostPortPair(url.HostNoBrackets(), url.EffectiveIntPort());
+ return HostPortPair(url.HostNoBrackets(),
+ static_cast<uint16>(url.EffectiveIntPort()));
}
// static
@@ -41,7 +42,7 @@ HostPortPair HostPortPair::FromString(const std::string& str) {
return HostPortPair();
HostPortPair host_port_pair;
host_port_pair.set_host(key_port[0]);
- host_port_pair.set_port(port);
+ host_port_pair.set_port(static_cast<uint16>(port));
return host_port_pair;
}
« no previous file with comments | « net/base/host_mapping_rules.cc ('k') | net/base/ip_endpoint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698