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

Issue 9960077: Modify the base::JSONReader interface to take a set of options rather than a boolean flag. (Closed)

Created:
8 years, 8 months ago by Robert Sesek
Modified:
8 years, 8 months ago
Reviewers:
Mark Mentovai, Wez
CC:
chromium-reviews, erikwright (departed), amit, mihaip+watch_chromium.org, stuartmorgan+watch_chromium.org, dcaiafa+watch_chromium.org, cbentzel+watch_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, tim (not reviewing), kkania, wez+watch_chromium.org, Raghu Simha, sanjeevr, ncarter (slow), simonmorris+watch_chromium.org, sergeyu+watch_chromium.org, jamiewalch+watch_chromium.org, hclam+watch_chromium.org, akalin, garykac+watch_chromium.org, Aaron Boodman, lambroslambrou+watch_chromium.org, robertshield, alexeypa+watch_chromium.org
Visibility:
Public.

Description

Modify the base::JSONReader interface to take a set of options rather than a boolean flag. This is just prep work for a large CL that rewrites the JSON parser. Splitting out this interface change will make it easier to review the other CL. BUG=121469 TEST=No functional change. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=131680

Patch Set 1 #

Patch Set 2 : Fix compile #

Patch Set 3 : Pass base_unittests #

Total comments: 11

Patch Set 4 : Address comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+209 lines, -208 lines) Patch
M base/debug/trace_event_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/json/json_reader.h View 1 2 3 2 chunks +15 lines, -4 lines 1 comment Download
M base/json/json_reader.cc View 1 2 3 1 chunk +10 lines, -4 lines 0 comments Download
M base/json/json_reader_unittest.cc View 1 2 3 17 chunks +59 lines, -68 lines 0 comments Download
M base/json/json_string_value_serializer.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M base/json/json_value_converter_unittest.cc View 6 chunks +6 lines, -6 lines 0 comments Download
M base/test/trace_event_analyzer.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/automation/testing_automation_provider.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chrome_to_mobile_service.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/cros/network_parser.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/customization_document.cc View 1 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_manager_util.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_documents_service_browsertest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/gdata/gdata_operations.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/gdata/gdata_util.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/content_settings/content_settings_policy_provider.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/content_settings/host_content_settings_map_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/app_notification_storage.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/app_notify_channel_setup.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/chrome_app_api_browsertest.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_debugger_api.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_function_test_utils.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/extension_menu_manager_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/settings/setting_sync_data.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/gpu_blacklist.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/gaia/gaia_oauth_fetcher.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/plugin_finder.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/policy/configuration_policy_handler_chromeos.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/printing/cloud_print/cloud_print_setup_message_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/printing/print_dialog_cloud.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile_downloader.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/spellchecker/spelling_service_client.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/sync/notifier/p2p_notifier.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_preference_unittest.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/themes/browser_theme_pack_unittest.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/translate/translate_manager.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options2/core_options_handler2.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/sync_setup_handler.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/web_resource/promo_resource_service_unittest.cc View 9 chunks +9 lines, -9 lines 0 comments Download
M chrome/common/cloud_print/cloud_print_helpers.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/api/extension_api.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/simple_feature_provider.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/common/json_value_serializer_unittest.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/common/net/gaia/gaia_auth_fetcher.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/common/net/gaia/gaia_oauth_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/net/gaia/oauth2_access_token_fetcher.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/common/net/gaia/oauth2_mint_token_fetcher.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/common/web_apps.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/web_resource/web_resource_unpacker.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/send_request_natives.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/service/cloud_print/print_system_cups.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/test/automation/automation_json_requests.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/test/automation/browser_proxy.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/test/base/ui_test_utils.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/test/perf/rendering/throughput_tests.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/webdriver/webdriver_dispatch.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/webdriver/webdriver_dispatch_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/webdriver/webdriver_session.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/utility/chrome_content_utility_client.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/geolocation/network_location_request.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/speech/google_one_shot_remote_engine.cc View 1 chunk +1 line, -1 line 0 comments Download
M gpu/tools/compositor_model_bench/render_tree.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M jingle/glue/utils.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M net/base/crl_set.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/base/transport_security_state.cc View 1 chunk +1 line, -2 lines 0 comments Download
M remoting/client/plugin/chromoting_instance.cc View 1 chunk +2 lines, -1 line 0 comments Download
M remoting/host/elevated_controller_win.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M remoting/host/gaia_oauth_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M remoting/host/json_host_config.cc View 1 chunk +2 lines, -1 line 0 comments Download
M remoting/host/plugin/daemon_controller_win.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M remoting/host/plugin/host_script_object.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Robert Sesek
Please enjoy this monotonous CL. https://chromiumcodereview.appspot.com/9960077/diff/4006/base/json/json_reader.cc File base/json/json_reader.cc (right): https://chromiumcodereview.appspot.com/9960077/diff/4006/base/json/json_reader.cc#newcode112 base/json/json_reader.cc:112: Value* root = reader.JsonToValue(json, ...
8 years, 8 months ago (2012-04-10 21:37:32 UTC) #1
Mark Mentovai
https://chromiumcodereview.appspot.com/9960077/diff/4006/base/json/json_reader.cc File base/json/json_reader.cc (right): https://chromiumcodereview.appspot.com/9960077/diff/4006/base/json/json_reader.cc#newcode112 base/json/json_reader.cc:112: Value* root = reader.JsonToValue(json, false, rsesek wrote: > This ...
8 years, 8 months ago (2012-04-10 21:51:02 UTC) #2
Robert Sesek
https://chromiumcodereview.appspot.com/9960077/diff/4006/base/json/json_reader.h File base/json/json_reader.h (right): https://chromiumcodereview.appspot.com/9960077/diff/4006/base/json/json_reader.h#newcode54 base/json/json_reader.h:54: JSON_PARSE_RFC = 0, On 2012/04/10 21:51:02, Mark Mentovai wrote: ...
8 years, 8 months ago (2012-04-10 22:06:14 UTC) #3
Mark Mentovai
LGTMultifach https://chromiumcodereview.appspot.com/9960077/diff/1068/base/json/json_reader.h File base/json/json_reader.h (right): https://chromiumcodereview.appspot.com/9960077/diff/1068/base/json/json_reader.h#newcode57 base/json/json_reader.h:57: // Allows commas to exist after the last ...
8 years, 8 months ago (2012-04-10 22:08:28 UTC) #4
Wez
8 years, 8 months ago (2012-04-10 22:58:15 UTC) #5
remoting/ LGTM

Powered by Google App Engine
This is Rietveld 408576698