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

Unified Diff: base/json/string_escape.cc

Issue 6997006: iwyu: Include stringprintf.h where appropriate, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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 | « base/json/json_writer.cc ('k') | base/process_util_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/json/string_escape.cc
diff --git a/base/json/string_escape.cc b/base/json/string_escape.cc
index 0b12439603d019143351c086f6dcc9dbb16a0752..b4415b8fa3b951d748fb305c553ba29a53305446 100644
--- a/base/json/string_escape.cc
+++ b/base/json/string_escape.cc
@@ -6,6 +6,7 @@
#include <string>
+#include "base/stringprintf.h"
#include "base/string_util.h"
namespace base {
@@ -63,7 +64,7 @@ void JsonDoubleQuoteT(const STR& str,
// 2. Technically, we could also pass through c > 126 as UTF8, but this
// is also optional. It would also be a pain to implement here.
unsigned int as_uint = static_cast<unsigned int>(c);
- StringAppendF(dst, "\\u%04X", as_uint);
+ base::StringAppendF(dst, "\\u%04X", as_uint);
Nico 2011/05/10 02:57:51 hm, these are not necessary because of ADL. does i
James Hawkins 2011/05/10 04:01:43 No, I added them. I prefer them, but I don't thin
} else {
unsigned char ascii = static_cast<unsigned char>(*it);
dst->push_back(ascii);
« no previous file with comments | « base/json/json_writer.cc ('k') | base/process_util_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698