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

Unified Diff: net/base/host_port_pair.cc

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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/file_stream_context.cc ('k') | net/base/mime_util.cc » ('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 1570bbb5718606e25057f07069b16d194aaaba6f..1550c36f616c258da2fd6c76cf996087ee355042 100644
--- a/net/base/host_port_pair.cc
+++ b/net/base/host_port_pair.cc
@@ -47,7 +47,10 @@ HostPortPair HostPortPair::FromString(const std::string& str) {
}
std::string HostPortPair::ToString() const {
- return base::StringPrintf("%s:%u", HostForURL().c_str(), port_);
+ std::string ret(HostForURL());
+ ret += ':';
+ ret += base::IntToString(port_);
+ return ret;
}
std::string HostPortPair::HostForURL() const {
« no previous file with comments | « net/base/file_stream_context.cc ('k') | net/base/mime_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698