summaryrefslogtreecommitdiffstats
path: root/base/json_writer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/json_writer.cc')
-rw-r--r--base/json_writer.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/base/json_writer.cc b/base/json_writer.cc
index 20c533b..56efce9 100644
--- a/base/json_writer.cc
+++ b/base/json_writer.cc
@@ -76,7 +76,7 @@ void JSONWriter::BuildJSONString(const Value* const node, int depth) {
std::wstring value;
bool result = node->GetAsString(&value);
DCHECK(result);
- AppendQuotedString(value);
+ AppendQuotedString(WideToUTF16Hack(value));
break;
}
@@ -155,8 +155,8 @@ void JSONWriter::BuildJSONString(const Value* const node, int depth) {
}
}
-void JSONWriter::AppendQuotedString(const std::wstring& str) {
- string_escape::JavascriptDoubleQuote(WideToUTF16Hack(str), true,
+void JSONWriter::AppendQuotedString(const string16& str) {
+ string_escape::JavascriptDoubleQuote(str, true,
json_string_);
}