From 6470ee8f59dba5eecfce4a64d7ff3930ae716095 Mon Sep 17 00:00:00 2001 From: "nsylvain@chromium.org" Date: Tue, 3 Mar 2009 20:46:40 +0000 Subject: Revert dsh's change 10818 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10821 0039d316-1c4b-4281-b951-d872f2087c98 --- base/json_writer.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'base/json_writer.cc') diff --git a/base/json_writer.cc b/base/json_writer.cc index 56efce9..20c533b 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(WideToUTF16Hack(value)); + AppendQuotedString(value); break; } @@ -155,8 +155,8 @@ void JSONWriter::BuildJSONString(const Value* const node, int depth) { } } -void JSONWriter::AppendQuotedString(const string16& str) { - string_escape::JavascriptDoubleQuote(str, true, +void JSONWriter::AppendQuotedString(const std::wstring& str) { + string_escape::JavascriptDoubleQuote(WideToUTF16Hack(str), true, json_string_); } -- cgit v1.1