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

Issue 8952029: Returns a bool for JSONValueConverter::Convert() (Closed)

Created:
8 years, 11 months ago by Jun Mukai
Modified:
8 years, 11 months ago
CC:
chromium-reviews, Paweł Hajdan Jr., brettw-cc_chromium.org, zel, satorux1
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Returns a bool for JSONValueConverter::Convert() As I see a real use scenario in chrome/browser/chromeos/gdata/ gdata_parser.cc, I realized that sometimes structural validity matters. It also introduce string16 whose code is almost equivalent to std::string. BUG=none TEST=passed Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=116473

Patch Set 1 #

Total comments: 8

Patch Set 2 : Fix code and add more tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -27 lines) Patch
M base/json/json_value_converter.h View 1 17 chunks +73 lines, -25 lines 0 comments Download
M base/json/json_value_converter_unittest.cc View 1 3 chunks +42 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Jun Mukai
8 years, 11 months ago (2012-01-02 16:26:57 UTC) #1
awong
LGTM FYI, Will's out on leave until late January so you should probably find another ...
8 years, 11 months ago (2012-01-03 22:02:09 UTC) #2
satorux1
adding evan to see if he's really back.
8 years, 11 months ago (2012-01-03 22:21:49 UTC) #3
Evan Martin
Can you extend the test to cover the return-false cases? http://codereview.chromium.org/8952029/diff/1/base/json/json_value_converter.h File base/json/json_value_converter.h (right): http://codereview.chromium.org/8952029/diff/1/base/json/json_value_converter.h#newcode226 ...
8 years, 11 months ago (2012-01-03 22:56:00 UTC) #4
Jun Mukai
http://codereview.chromium.org/8952029/diff/1/base/json/json_value_converter.h File base/json/json_value_converter.h (right): http://codereview.chromium.org/8952029/diff/1/base/json/json_value_converter.h#newcode52 base/json/json_value_converter.h:52: // Also note that Convert() will modify the passed ...
8 years, 11 months ago (2012-01-04 16:03:52 UTC) #5
Jun Mukai
I also added tests of failure case too. ptal.
8 years, 11 months ago (2012-01-04 23:17:45 UTC) #6
Evan Martin
Awesome, thanks. LGTM
8 years, 11 months ago (2012-01-04 23:24:38 UTC) #7
zel
mukai, please also try to apply your JSONValueConverter class to gdata_parser.cc. I would like to ...
8 years, 11 months ago (2012-01-04 23:41:18 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/8952029/6001
8 years, 11 months ago (2012-01-05 08:38:36 UTC) #9
commit-bot: I haz the power
8 years, 11 months ago (2012-01-05 09:46:44 UTC) #10
Change committed as 116473

Powered by Google App Engine
This is Rietveld 408576698