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

Issue 113606: Add JSON-specific escaping, which has different rules from JS escaping. (Closed)

Created:
11 years, 7 months ago by Erik does not do reviews
Modified:
9 years, 7 months ago
Reviewers:
tony
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Add JSON-specific escaping, which has different rules from JS escaping.BUG=http://crbug.com/11431TEST=base_unittests.exe --gtest_filter=StringEscapeTest.Json* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=16485

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 5

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+177 lines, -158 lines) Patch
M base/json_writer.cc View 1 2 3 4 5 6 2 chunks +10 lines, -11 lines 0 comments Download
M base/string_escape.h View 1 2 3 4 5 6 1 chunk +11 lines, -14 lines 0 comments Download
M base/string_escape.cc View 5 6 4 chunks +28 lines, -39 lines 0 comments Download
M base/string_escape_unittest.cc View 1 2 3 4 5 6 1 chunk +75 lines, -44 lines 0 comments Download
M base/string_util.h View 1 2 3 4 5 6 1 chunk +28 lines, -0 lines 0 comments Download
M base/string_util.cc View 1 2 3 4 5 6 1 chunk +0 lines, -29 lines 0 comments Download
M chrome/common/json_value_serializer_unittest.cc View 4 5 6 3 chunks +20 lines, -15 lines 0 comments Download
M net/base/net_util.cc View 5 6 3 chunks +5 lines, -6 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Erik does not do reviews
11 years, 7 months ago (2009-05-19 23:22:33 UTC) #1
tony
I see, the spec doesn't allow \x escaping in json. I would just change JavascriptDoubleQuote ...
11 years, 7 months ago (2009-05-20 00:34:28 UTC) #2
Erik does not do reviews
new snapshot uploaded
11 years, 7 months ago (2009-05-20 01:02:06 UTC) #3
tony
LGTM, just some suggestions on moving stuff around. http://codereview.chromium.org/113606/diff/1028/56 File base/base.gyp (left): http://codereview.chromium.org/113606/diff/1028/56#oldcode269 Line 269: ...
11 years, 7 months ago (2009-05-20 01:28:19 UTC) #4
Erik does not do reviews
fixed your other nits and committed http://codereview.chromium.org/113606/diff/1028/56 File base/base.gyp (left): http://codereview.chromium.org/113606/diff/1028/56#oldcode269 Line 269: 'string_escape.cc', On ...
11 years, 7 months ago (2009-05-20 16:43:53 UTC) #5
tony
11 years, 7 months ago (2009-05-20 16:57:31 UTC) #6
LGTM!

Powered by Google App Engine
This is Rietveld 408576698