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

Unified Diff: net/http/http_request_headers.cc

Issue 4974001: base: Get rid of 'using' declaration of StringAppendF. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 10 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/http/http_cache_unittest.cc ('k') | net/http/http_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_request_headers.cc
diff --git a/net/http/http_request_headers.cc b/net/http/http_request_headers.cc
index 9f2eb90b4b979b5d2d19bed7f25d1c953179f5c3..fc2ebcd1defbbd75de931abfe890144923e6f40a 100644
--- a/net/http/http_request_headers.cc
+++ b/net/http/http_request_headers.cc
@@ -160,10 +160,12 @@ std::string HttpRequestHeaders::ToString() const {
std::string output;
for (HeaderVector::const_iterator it = headers_.begin();
it != headers_.end(); ++it) {
- if (!it->value.empty())
- StringAppendF(&output, "%s: %s\r\n", it->key.c_str(), it->value.c_str());
- else
- StringAppendF(&output, "%s:\r\n", it->key.c_str());
+ if (!it->value.empty()) {
+ base::StringAppendF(&output, "%s: %s\r\n",
+ it->key.c_str(), it->value.c_str());
+ } else {
+ base::StringAppendF(&output, "%s:\r\n", it->key.c_str());
+ }
}
output.append("\r\n");
return output;
« no previous file with comments | « net/http/http_cache_unittest.cc ('k') | net/http/http_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698