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

Unified Diff: net/tools/hresolv/hresolv.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/tools/dump_cache/url_utilities_unittest.cc ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/hresolv/hresolv.cc
diff --git a/net/tools/hresolv/hresolv.cc b/net/tools/hresolv/hresolv.cc
index ae0ee0fd7795f6bea49579250cb0ba12b9c43ddc..250a6b2c49a277c52b9984eb7c203c35bdde4c98 100644
--- a/net/tools/hresolv/hresolv.cc
+++ b/net/tools/hresolv/hresolv.cc
@@ -134,28 +134,28 @@ std::string FormatAddrinfoDetails(const struct addrinfo& ai,
std::string ai_addr = net::NetAddressToString(&ai);
std::string ai_canonname;
if (ai.ai_canonname) {
- ai_canonname = StringPrintf("%s ai_canonname: %s\n",
- indent,
- ai.ai_canonname);
+ ai_canonname = base::StringPrintf("%s ai_canonname: %s\n",
+ indent,
+ ai.ai_canonname);
}
- return StringPrintf("%saddrinfo {\n"
- "%s ai_flags: %s\n"
- "%s ai_family: %s\n"
- "%s ai_socktype: %s\n"
- "%s ai_protocol: %s\n"
- "%s ai_addrlen: %d\n"
- "%s ai_addr: %s\n"
- "%s"
- "%s}\n",
- indent,
- indent, ai_flags.c_str(),
- indent, ai_family,
- indent, ai_socktype,
- indent, ai_protocol,
- indent, ai.ai_addrlen,
- indent, ai_addr.c_str(),
- ai_canonname.c_str(),
- indent);
+ return base::StringPrintf("%saddrinfo {\n"
+ "%s ai_flags: %s\n"
+ "%s ai_family: %s\n"
+ "%s ai_socktype: %s\n"
+ "%s ai_protocol: %s\n"
+ "%s ai_addrlen: %d\n"
+ "%s ai_addr: %s\n"
+ "%s"
+ "%s}\n",
+ indent,
+ indent, ai_flags.c_str(),
+ indent, ai_family,
+ indent, ai_socktype,
+ indent, ai_protocol,
+ indent, ai.ai_addrlen,
+ indent, ai_addr.c_str(),
+ ai_canonname.c_str(),
+ indent);
}
std::string FormatAddressList(const net::AddressList& address_list,
« no previous file with comments | « net/tools/dump_cache/url_utilities_unittest.cc ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698