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

Issue 9147060: Rewrite the gdata_parser by using JSONValueConverter. (Closed)

Created:
8 years, 11 months ago by Jun Mukai
Modified:
8 years, 11 months ago
Reviewers:
satorux1, zel
CC:
chromium-reviews, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org, awong
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Rewrite the gdata_parser by using JSONValueConverter. By using JSONValueConverter, we can eliminate ~200 lines of code. This change depends on http://codereview.chromium.org/9184002 and http://codereview.chromium.org/9187047/ BUG=109375 TEST=passed Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=118068

Patch Set 1 #

Patch Set 2 : Fix some comments in the header file #

Total comments: 41

Patch Set 3 : Fix code based on reviewer comments #

Patch Set 4 : Modify std::vector back to ScopedVector #

Total comments: 6

Patch Set 5 : Add comment to FillRemainingFields and more #

Patch Set 6 : Put names for internal structs because arraysize may not work with anonymous types #

Unified diffs Side-by-side diffs Delta from patch set Stats (+326 lines, -468 lines) Patch
M chrome/browser/chromeos/gdata/gdata_parser.h View 1 2 3 19 chunks +113 lines, -61 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_parser.cc View 1 2 3 4 5 14 chunks +185 lines, -371 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_parser_unittest.cc View 1 2 3 5 chunks +28 lines, -36 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Jun Mukai
8 years, 11 months ago (2012-01-11 06:30:08 UTC) #1
satorux1
I'll take a closer look tomorrow, but per the stats numbers, gdata_parser.s is reduced by ...
8 years, 11 months ago (2012-01-11 06:34:50 UTC) #2
satorux1
200-line reduction is awesome. parsing rules are now declarative, which is also nice. http://codereview.chromium.org/9147060/diff/2001/chrome/browser/chromeos/gdata/gdata_parser.cc File ...
8 years, 11 months ago (2012-01-11 17:38:40 UTC) #3
zel
yes, 200 less lines on gdata parsing, but 400+ on the JSON converter side does ...
8 years, 11 months ago (2012-01-11 18:03:02 UTC) #4
Jun Mukai
The patchset 3 does not work but let me reply at this time to share ...
8 years, 11 months ago (2012-01-12 07:20:03 UTC) #5
Jun Mukai
Uploaded patchset 4, which I modified the std::vector back to ScopedVector. Please take another look ...
8 years, 11 months ago (2012-01-12 09:00:41 UTC) #6
satorux1
LGTM http://codereview.chromium.org/9147060/diff/2001/chrome/browser/chromeos/gdata/gdata_parser.h File chrome/browser/chromeos/gdata/gdata_parser.h (right): http://codereview.chromium.org/9147060/diff/2001/chrome/browser/chromeos/gdata/gdata_parser.h#newcode26 chrome/browser/chromeos/gdata/gdata_parser.h:26: class RepeatedMessageConverter; On 2012/01/12 07:20:03, mukai wrote: > ...
8 years, 11 months ago (2012-01-13 17:20:32 UTC) #7
Jun Mukai
http://codereview.chromium.org/9147060/diff/9001/chrome/browser/chromeos/gdata/gdata_parser.cc File chrome/browser/chromeos/gdata/gdata_parser.cc (right): http://codereview.chromium.org/9147060/diff/9001/chrome/browser/chromeos/gdata/gdata_parser.cc#newcode46 chrome/browser/chromeos/gdata/gdata_parser.cc:46: { DocumentEntry::PDF, "pdf"} On 2012/01/13 17:20:33, satorux1 wrote: > ...
8 years, 11 months ago (2012-01-16 07:49:22 UTC) #8
Jun Mukai
Modified the .cc file a bit. arraysize does not work well with anonymous types (see ...
8 years, 11 months ago (2012-01-16 09:39:44 UTC) #9
satorux1
LGTM
8 years, 11 months ago (2012-01-17 17:11:46 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/9147060/17007
8 years, 11 months ago (2012-01-18 03:22:39 UTC) #11
commit-bot: I haz the power
8 years, 11 months ago (2012-01-18 05:45:17 UTC) #12
Change committed as 118068

Powered by Google App Engine
This is Rietveld 408576698