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

Issue 7756022: base/json: Get rid of static initializer in JSONReader. (Closed)

Created:
9 years, 3 months ago by tfarina
Modified:
9 years, 3 months ago
Reviewers:
tony
CC:
chromium-reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

base/json: Get rid of static initializer in JSONReader. Convert kInvalidToken to a static function in Token class called CreateInvalidToken(). This should get rid of the problem with the static initialization. BUG=94925 TEST=base_unittests --gtest_filter=JSON* R=tony@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=99200

Patch Set 1 #

Total comments: 2

Patch Set 2 : add CreateInvalidToken() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -24 lines) Patch
M base/json/json_reader.h View 1 1 chunk +6 lines, -1 line 0 comments Download
M base/json/json_reader.cc View 1 11 chunks +21 lines, -23 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
tfarina
http://codereview.chromium.org/7756022/diff/1/base/json/json_reader.cc File base/json/json_reader.cc (right): http://codereview.chromium.org/7756022/diff/1/base/json/json_reader.cc#newcode88 base/json/json_reader.cc:88: : kInvalidToken(new Token(Token::INVALID_TOKEN, 0, 0)), I'm not convinced this ...
9 years, 3 months ago (2011-09-01 01:21:06 UTC) #1
tony
http://codereview.chromium.org/7756022/diff/1/base/json/json_reader.cc File base/json/json_reader.cc (right): http://codereview.chromium.org/7756022/diff/1/base/json/json_reader.cc#newcode88 base/json/json_reader.cc:88: : kInvalidToken(new Token(Token::INVALID_TOKEN, 0, 0)), On 2011/09/01 01:21:07, tfarina ...
9 years, 3 months ago (2011-09-01 01:48:11 UTC) #2
tfarina
On 2011/09/01 01:48:11, tony wrote: > http://codereview.chromium.org/7756022/diff/1/base/json/json_reader.cc > File base/json/json_reader.cc (right): > > http://codereview.chromium.org/7756022/diff/1/base/json/json_reader.cc#newcode88 > ...
9 years, 3 months ago (2011-09-01 02:20:18 UTC) #3
tony
9 years, 3 months ago (2011-09-01 16:17:43 UTC) #4
LGTM, thanks!

Powered by Google App Engine
This is Rietveld 408576698