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

Issue 16270: Change the signature of JSONReader::Read() and related methods to be more (Closed)

Created:
11 years, 12 months ago by Aaron Boodman
Modified:
9 years, 6 months ago
Reviewers:
tony, eroman
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Change the signature of JSONReader::Read() and related methods to be more friendly to use with scoped_ptr. Change all the callsites.

Patch Set 1 #

Patch Set 2 : Fix some minor bugs #

Total comments: 10

Patch Set 3 : fixens #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+428 lines, -573 lines) Patch
M base/json_reader.h View 1 2 4 chunks +17 lines, -21 lines 0 comments Download
M base/json_reader.cc View 1 12 chunks +72 lines, -96 lines 0 comments Download
M base/json_reader_unittest.cc View 1 2 8 chunks +214 lines, -300 lines 0 comments Download
M base/values.h View 1 chunk +4 lines, -7 lines 0 comments Download
M chrome/browser/autocomplete/search_provider.cc View 1 2 1 chunk +8 lines, -7 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_storage.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/debugger/debugger_host_impl.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/dom_ui/dom_ui.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/dom_ui/dom_ui_host.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extensions_service.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/page_state.cc View 1 2 1 chunk +6 lines, -7 lines 0 comments Download
M chrome/common/json_value_serializer.h View 2 chunks +5 lines, -11 lines 0 comments Download
M chrome/common/json_value_serializer.cc View 2 chunks +4 lines, -7 lines 2 comments Download
M chrome/common/json_value_serializer_perftest.cc View 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/common/json_value_serializer_unittest.cc View 10 chunks +43 lines, -53 lines 0 comments Download
M chrome/common/pref_service.cc View 1 chunk +19 lines, -23 lines 0 comments Download
M chrome/common/pref_service_uitest.cc View 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/common/pref_service_unittest.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/installer/util/master_preferences.cc View 1 chunk +5 lines, -6 lines 0 comments Download
M chrome/test/automation/tab_proxy.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/test/ui/ui_test.cc View 1 1 chunk +4 lines, -6 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Aaron Boodman
Sorry about the mind-numbing review.
11 years, 12 months ago (2008-12-26 07:08:01 UTC) #1
tony
This is awesome; much cleaner. Thanks for doing this refactoring. LGTM, some comments below. Please ...
11 years, 12 months ago (2008-12-29 10:02:03 UTC) #2
Aaron Boodman
Thanks for the quick feedback. All fixed, submitting, will watch purify bot. http://codereview.chromium.org/16270/diff/222/224 File base/json_reader.h ...
11 years, 12 months ago (2008-12-29 19:57:28 UTC) #3
eroman
11 years, 11 months ago (2009-01-03 04:39:05 UTC) #4
looks great to me, thanks for doing this!

I have some nits, sending them as:

http://codereview.chromium.org/17047

http://codereview.chromium.org/16270/diff/257/424
File chrome/common/json_value_serializer.cc (right):

http://codereview.chromium.org/16270/diff/257/424#newcode26
Line 26: return false;
return NULL

http://codereview.chromium.org/16270/diff/257/424#newcode54
Line 54: return false;
return NULL

Powered by Google App Engine
This is Rietveld 408576698