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

Unified Diff: net/base/host_port_pair.cc

Issue 3390026: net: Append base:: in the StringPrintf calls. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: fix include order Created 10 years, 3 months 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_cache_unittest.cc ('k') | net/base/host_resolver_impl_unittest.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 bb6376525b710d841c5011902a71dbaccae5460f..1c4406f4b7fb3952f4cac0beff25cb910bba36e5 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_;
« no previous file with comments | « net/base/host_cache_unittest.cc ('k') | net/base/host_resolver_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698