| Index: third_party/WebKit/Source/platform/JSONValues.cpp
|
| diff --git a/third_party/WebKit/Source/platform/JSONValues.cpp b/third_party/WebKit/Source/platform/JSONValues.cpp
|
| index 76ec444c96b439e55028075dd7ec6b4958437f1c..3001d16776fb8a75aee30dbfe6403eb1973a1f69 100644
|
| --- a/third_party/WebKit/Source/platform/JSONValues.cpp
|
| +++ b/third_party/WebKit/Source/platform/JSONValues.cpp
|
| @@ -66,9 +66,8 @@ void writeIndent(int depth, StringBuilder* output)
|
|
|
| } // anonymous namespace
|
|
|
| -void doubleQuoteStringForJSON(const String& str, StringBuilder* dst)
|
| +void escapeStringForJSON(const String& str, StringBuilder* dst)
|
| {
|
| - dst->append('"');
|
| for (unsigned i = 0; i < str.length(); ++i) {
|
| UChar c = str[i];
|
| if (!escapeChar(c, dst)) {
|
| @@ -84,6 +83,12 @@ void doubleQuoteStringForJSON(const String& str, StringBuilder* dst)
|
| }
|
| }
|
| }
|
| +}
|
| +
|
| +void doubleQuoteStringForJSON(const String& str, StringBuilder* dst)
|
| +{
|
| + dst->append('"');
|
| + escapeStringForJSON(str, dst);
|
| dst->append('"');
|
| }
|
|
|
|
|