summaryrefslogtreecommitdiffstats
path: root/net/base/host_port_pair.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-25 02:25:06 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-25 02:25:06 +0000
commitd8eb842474ce559113a9b0ead0610973985bf693 (patch)
tree817d637b7bfffa8bebe3d1de0af0aea05d72a8a7 /net/base/host_port_pair.cc
parent928930d76cb018b8a496dbdf7166178ef8fab1bf (diff)
downloadchromium_src-d8eb842474ce559113a9b0ead0610973985bf693.zip
chromium_src-d8eb842474ce559113a9b0ead0610973985bf693.tar.gz
chromium_src-d8eb842474ce559113a9b0ead0610973985bf693.tar.bz2
net: Append base:: in the StringPrintf calls.
(Note: This is a TODO in string_util.h) BUG=None TEST=trybots Review URL: http://codereview.chromium.org/3390026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60555 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/host_port_pair.cc')
-rw-r--r--net/base/host_port_pair.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/base/host_port_pair.cc b/net/base/host_port_pair.cc
index bb63765..1c4406f 100644
--- a/net/base/host_port_pair.cc
+++ b/net/base/host_port_pair.cc
@@ -3,7 +3,9 @@
// found in the LICENSE file.
#include "net/base/host_port_pair.h"
+
#include "base/string_util.h"
+#include "base/stringprintf.h"
#include "googleurl/src/gurl.h"
namespace net {
@@ -18,14 +20,14 @@ HostPortPair HostPortPair::FromURL(const GURL& url) {
}
std::string HostPortPair::ToString() const {
- return StringPrintf("%s:%u", HostForURL().c_str(), port_);
+ return base::StringPrintf("%s:%u", HostForURL().c_str(), port_);
}
std::string HostPortPair::HostForURL() const {
// Check to see if the host is an IPv6 address. If so, added brackets.
if (host_.find(':') != std::string::npos) {
DCHECK_NE(host_[0], '[');
- return StringPrintf("[%s]", host_.c_str());
+ return base::StringPrintf("[%s]", host_.c_str());
}
return host_;