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

Issue 925783002: Split ValueSerializer into separate Serializer and Deserializer classes. (Closed)

Created:
5 years, 10 months ago by prashant.hiremath
Modified:
5 years, 9 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Split ValueSerializer into separate Serializer and Deserializer classes. This CL removes the Deserializer functionality from ValueSerializer, and puts into separate class ValueDeserializer, so that class responsibility is maintained. BUG=455453 TBR=brettw@chromium.org Committed: https://crrev.com/54a99450c633d64842217b10fa6841b2a3e7eb77 Cr-Commit-Position: refs/heads/master@{#319239}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Updated as per review comment. #

Total comments: 4

Patch Set 3 : Updated as per review comments. #

Total comments: 9

Patch Set 4 : Rebase #

Patch Set 5 : Changed Test Category name as per review comment. #

Patch Set 6 : Rebased to latest. #

Patch Set 7 : Fix Try Job failures. #

Patch Set 8 : fix try job failure-2. #

Patch Set 9 : Fixed build errors in different modules. #

Patch Set 10 : Fix Chrome OS build failure. #

Patch Set 11 : Fix build failure due to ctor change. #

Patch Set 12 : Fixed cpplint warnings. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+311 lines, -291 lines) Patch
M base/json/json_file_value_serializer.h View 1 2 3 4 3 chunks +24 lines, -11 lines 0 comments Download
M base/json/json_file_value_serializer.cc View 1 2 3 4 5 chunks +22 lines, -14 lines 0 comments Download
M base/json/json_string_value_serializer.h View 1 2 3 chunks +27 lines, -22 lines 0 comments Download
M base/json/json_string_value_serializer.cc View 1 2 3 4 2 chunks +12 lines, -14 lines 0 comments Download
M base/json/json_value_serializer_unittest.cc View 1 2 3 4 16 chunks +37 lines, -59 lines 0 comments Download
M base/prefs/json_pref_store.cc View 1 2 chunks +7 lines, -7 lines 0 comments Download
M base/test/gtest_util.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M base/values.h View 1 chunk +9 lines, -2 lines 0 comments Download
M base/values.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/app_mode/kiosk_external_updater.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/app_mode/startup_app_launcher.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system_util.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/extensions/default_app_order.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/input_method/component_extension_ime_manager_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/supervised/supervised_user_authentication.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/component_updater/pnacl/pnacl_component_installer.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/component_updater/recovery_component_installer.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/component_updater/test/component_installers_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/diagnostics/recon_diagnostics.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/drive/fake_drive_service.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/messaging/native_messaging_host_manifest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/chrome_info_map_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/component_loader.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_action_icon_factory_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_icon_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_ui_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/external_pref_loader.cc View 1 2 3 4 5 4 chunks +10 lines, -9 lines 0 comments Download
M chrome/browser/extensions/user_script_listener_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/prefs/leveldb_pref_store.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prefs/pref_service_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prefs/tracked/pref_hash_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/profile_resetter/brandcoded_default_settings.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profile_resetter/profile_resetter_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/supervised_user/supervised_user_site_list.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/themes/browser_theme_pack_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/app_list/start_page_service.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_install_prompt_test_utils.mm View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/nacl_ui.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/extension_printer_handler_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/extension_test_util.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/manifest_handlers/settings_overrides_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/common/extensions/manifest_handlers/ui_overrides_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/installer/util/master_preferences.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/util/uninstall_metrics.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/installer/util/uninstall_metrics_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/utility/importer/firefox_importer.cc View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M chromeos/app_mode/kiosk_oem_manifest_parser.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -5 lines 0 comments Download
M chromeos/dbus/fake_easy_unlock_client.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M chromeos/network/onc/onc_test_utils.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -3 lines 0 comments Download
M chromeos/tools/onc_validator/onc_validator.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -3 lines 0 comments Download
M components/bookmarks/browser/bookmark_codec.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M components/bookmarks/browser/bookmark_codec_unittest.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
M components/bookmarks/browser/bookmark_storage.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M components/json_schema/json_schema_validator_unittest_base.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M components/omnibox/search_suggestion_parser.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M components/policy/core/common/config_dir_policy_loader.cc View 1 2 chunks +5 lines, -5 lines 0 comments Download
M components/update_client/component_patcher.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M components/update_client/component_unpacker.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M extensions/browser/api/printer_provider/printer_provider_api.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M extensions/browser/api/printer_provider/printer_provider_apitest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M extensions/browser/extension_icon_image_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -3 lines 0 comments Download
M extensions/browser/image_loader_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -3 lines 0 comments Download
M extensions/common/extension_l10n_util.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M extensions/common/file_util.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M extensions/common/file_util_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M extensions/common/manifest_test.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M extensions/utility/unpacker.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M google_apis/drive/test_util.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M remoting/host/pairing_registry_delegate_linux.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -4 lines 0 comments Download
M remoting/host/pairing_registry_delegate_win.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M rlz/chromeos/lib/rlz_value_store_chromeos.cc View 1 2 3 4 5 6 1 chunk +4 lines, -4 lines 0 comments Download
M sync/internal_api/sync_encryption_handler_impl.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M sync/internal_api/sync_encryption_handler_impl_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/app_list/search/dictionary_data_store.cc View 1 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 39 (11 generated)
prashant.hiremath
This is initial patch, showing how it looks. Based on your review comment, next patch ...
5 years, 10 months ago (2015-02-13 03:53:08 UTC) #2
Matt Giuca
Hi Prashant, You clearly haven't compiled this code. There is an error in json_string_value_serializer.cc (definition ...
5 years, 10 months ago (2015-02-16 00:18:28 UTC) #3
Matt Giuca
Oh, I see your comment "Based on your review comment, next patch I'll change all ...
5 years, 10 months ago (2015-02-16 00:19:59 UTC) #4
prashant.hiremath
Hi, I have uploaded all the changes, Please review. Please let me know, if I ...
5 years, 10 months ago (2015-02-18 08:34:35 UTC) #5
Matt Giuca
Hi Prashant, Thanks for updating the CL. I am pretty busy today and tomorrow, so ...
5 years, 10 months ago (2015-02-19 03:57:15 UTC) #6
prashant.hiremath
On 2015/02/19 03:57:15, Matt Giuca wrote: > Hi Prashant, > > Thanks for updating the ...
5 years, 10 months ago (2015-02-19 06:49:42 UTC) #7
Matt Giuca
Thanks, Prashant. This is looking really good now. Just have a couple of things for ...
5 years, 10 months ago (2015-02-23 02:41:25 UTC) #8
Matt Giuca
Oh another thing: your CL description is worded funny ("ValueSerializer should be split be into ...
5 years, 10 months ago (2015-02-23 02:42:53 UTC) #9
prashant.hiremath
Please have a look. https://codereview.chromium.org/925783002/diff/20001/base/json/json_value_serializer_unittest.cc File base/json/json_value_serializer_unittest.cc (right): https://codereview.chromium.org/925783002/diff/20001/base/json/json_value_serializer_unittest.cc#newcode106 base/json/json_value_serializer_unittest.cc:106: TEST(JSONValueSerializerTest, ReadProperJSONFromStringPointer) { On 2015/02/23 ...
5 years, 10 months ago (2015-02-24 12:03:18 UTC) #10
Matt Giuca
+rvargas to review changes in base. Prashant volunteered to do a follow-up to my JSON ...
5 years, 10 months ago (2015-02-24 23:19:39 UTC) #12
rvargas (doing something else)
Base looks fine, just some nits. https://codereview.chromium.org/925783002/diff/40001/base/json/json_file_value_serializer.cc File base/json/json_file_value_serializer.cc (right): https://codereview.chromium.org/925783002/diff/40001/base/json/json_file_value_serializer.cc#newcode104 base/json/json_file_value_serializer.cc:104: std::string* error_str) { ...
5 years, 10 months ago (2015-02-25 03:38:25 UTC) #13
prashant.hiremath
https://codereview.chromium.org/925783002/diff/40001/base/json/json_value_serializer_unittest.cc File base/json/json_value_serializer_unittest.cc (left): https://codereview.chromium.org/925783002/diff/40001/base/json/json_value_serializer_unittest.cc#oldcode90 base/json/json_value_serializer_unittest.cc:90: TEST(JSONValueSerializerTest, ReadProperJSONFromString) { On 2015/02/25 03:38:24, rvargas wrote: > ...
5 years, 10 months ago (2015-02-25 06:01:37 UTC) #14
Matt Giuca
https://codereview.chromium.org/925783002/diff/40001/base/json/json_value_serializer_unittest.cc File base/json/json_value_serializer_unittest.cc (left): https://codereview.chromium.org/925783002/diff/40001/base/json/json_value_serializer_unittest.cc#oldcode90 base/json/json_value_serializer_unittest.cc:90: TEST(JSONValueSerializerTest, ReadProperJSONFromString) { I think the test name should ...
5 years, 10 months ago (2015-02-25 06:11:40 UTC) #15
rvargas (doing something else)
https://codereview.chromium.org/925783002/diff/40001/base/json/json_value_serializer_unittest.cc File base/json/json_value_serializer_unittest.cc (left): https://codereview.chromium.org/925783002/diff/40001/base/json/json_value_serializer_unittest.cc#oldcode90 base/json/json_value_serializer_unittest.cc:90: TEST(JSONValueSerializerTest, ReadProperJSONFromString) { On 2015/02/25 06:11:40, Matt Giuca wrote: ...
5 years, 10 months ago (2015-02-25 19:00:16 UTC) #16
Matt Giuca
https://codereview.chromium.org/925783002/diff/40001/base/json/json_value_serializer_unittest.cc File base/json/json_value_serializer_unittest.cc (left): https://codereview.chromium.org/925783002/diff/40001/base/json/json_value_serializer_unittest.cc#oldcode90 base/json/json_value_serializer_unittest.cc:90: TEST(JSONValueSerializerTest, ReadProperJSONFromString) { On 2015/02/25 19:00:15, rvargas wrote: > ...
5 years, 10 months ago (2015-02-25 23:20:49 UTC) #17
prashant.hiremath
Please Review. Sorry for the delay, was on PTO :) .
5 years, 9 months ago (2015-03-02 10:44:41 UTC) #18
rvargas (doing something else)
base lgtm
5 years, 9 months ago (2015-03-02 23:45:58 UTC) #19
Matt Giuca
OK, this is looking good now. I am adding brettw@chromium.org for top-level owners (technically, his ...
5 years, 9 months ago (2015-03-03 22:59:20 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/925783002/80001
5 years, 9 months ago (2015-03-04 02:47:10 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/1868)
5 years, 9 months ago (2015-03-04 03:00:42 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/925783002/200001
5 years, 9 months ago (2015-03-05 06:58:41 UTC) #29
prashant.hiremath
Fixed the build failures in windows/chromeos/modules which are not enabled by default in chrome and ...
5 years, 9 months ago (2015-03-05 06:59:46 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/47491)
5 years, 9 months ago (2015-03-05 07:20:38 UTC) #32
prashant.hiremath
Fixed cpplint warnings. Will try committing now. Hope this passes :)
5 years, 9 months ago (2015-03-05 08:12:59 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/925783002/220001
5 years, 9 months ago (2015-03-05 08:14:15 UTC) #36
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years, 9 months ago (2015-03-05 09:31:08 UTC) #37
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/54a99450c633d64842217b10fa6841b2a3e7eb77 Cr-Commit-Position: refs/heads/master@{#319239}
5 years, 9 months ago (2015-03-05 09:31:54 UTC) #38
Matt Giuca
5 years, 9 months ago (2015-03-06 01:52:11 UTC) #39
Message was sent while issue was closed.
Thanks, Prashant!

Powered by Google App Engine
This is Rietveld 408576698