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

Unified Diff: base/json/json_reader.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
Index: base/json/json_reader.cc
diff --git a/base/json/json_reader.cc b/base/json/json_reader.cc
index 82bc7d43964e51172d092a894d1c221a1baf36b1..b28699543336249e37e2b740a56114d3baf3ff51 100644
--- a/base/json/json_reader.cc
+++ b/base/json/json_reader.cc
@@ -7,6 +7,7 @@
#include "base/float_util.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
+#include "base/stringprintf.h"
#include "base/string_number_conversions.h"
#include "base/string_util.h"
#include "base/utf_string_conversions.h"
@@ -189,8 +190,8 @@ Value* JSONReader::JsonToValue(const std::string& json, bool check_root,
std::string JSONReader::FormatErrorMessage(int line, int column,
const std::string& description) {
if (line || column) {
- return StringPrintf("Line: %i, column: %i, %s",
- line, column, description.c_str());
+ return base::StringPrintf(
+ "Line: %i, column: %i, %s", line, column, description.c_str());
}
return description;
}

Powered by Google App Engine
This is Rietveld 408576698