diff options
author | dsh@google.com <dsh@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-25 19:17:45 +0000 |
---|---|---|
committer | dsh@google.com <dsh@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-25 19:17:45 +0000 |
commit | e2219171711f7acf49a52ba89eb6e05c27f11103 (patch) | |
tree | 464c5ec96e0a288bf0460d9d7109d12f9bd29207 /base/json_writer.cc | |
parent | 5e5bf59cbc75839aafef3ae29bcb53408adb715d (diff) | |
download | chromium_src-e2219171711f7acf49a52ba89eb6e05c27f11103.zip chromium_src-e2219171711f7acf49a52ba89eb6e05c27f11103.tar.gz chromium_src-e2219171711f7acf49a52ba89eb6e05c27f11103.tar.bz2 |
Change the string_escape functions to use string16 rather than wstring.
Review URL: http://codereview.chromium.org/27116
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10358 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/json_writer.cc')
-rw-r--r-- | base/json_writer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/json_writer.cc b/base/json_writer.cc index 0da2925..20c533b 100644 --- a/base/json_writer.cc +++ b/base/json_writer.cc @@ -156,7 +156,8 @@ void JSONWriter::BuildJSONString(const Value* const node, int depth) { } void JSONWriter::AppendQuotedString(const std::wstring& str) { - string_escape::JavascriptDoubleQuote(str, true, json_string_); + string_escape::JavascriptDoubleQuote(WideToUTF16Hack(str), true, + json_string_); } void JSONWriter::IndentLine(int depth) { @@ -164,4 +165,3 @@ void JSONWriter::IndentLine(int depth) { // reallocating. json_string_->append(std::string(depth * 3, ' ')); } - |