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

Issue 1394993004: Make ValueDeserializer::Deserialize return scoped_ptr (Closed)

Created:
5 years, 2 months ago by Olli Raula
Modified:
5 years, 2 months ago
Reviewers:
Lei Zhang, jam
CC:
chromium-reviews, yusukes+watch_chromium.org, chromoting-reviews_chromium.org, noyau+watch_chromium.org, stevenjb+watch_chromium.org, extensions-reviews_chromium.org, Matt Giuca, grt+watch_chromium.org, lcwu+watch_chromium.org, dzhioev+watch_chromium.org, achuith+watch_chromium.org, nona+watch_chromium.org, halliwell+watch_chromium.org, chromium-apps-reviews_chromium.org, tapted, media-router+watch_chromium.org, pam+watch_chromium.org, oshima+watch_chromium.org, gunsch+watch_chromium.org, hashimoto+watch_chromium.org, wfh+watch_chromium.org, shuchen+watch_chromium.org, jshin+watch_chromium.org, tfarina, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make ValueDeserializer::Deserialize return scoped_ptr Make ValueDeserializer::Deserialize return scoped_ptr as almost all consumers already use scoped_ptr and it is also better way to do it. TBR=jam@chromium.org Committed: https://crrev.com/ba04525cccccae530aa899882227d81b037eebff Cr-Commit-Position: refs/heads/master@{#354458}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Comments implemented #

Patch Set 3 : Chromeos cleanin #

Patch Set 4 : Chromeos typofix #

Patch Set 5 : Possible fix for windows #

Patch Set 6 : Fix and add ::From #

Total comments: 10

Patch Set 7 : Comments implemented #

Patch Set 8 : ToT #

Patch Set 9 : Win typo fix #

Total comments: 2

Patch Set 10 : Fix and add todo about not failed trybot #

Unified diffs Side-by-side diffs Delta from patch set Stats (+171 lines, -168 lines) Patch
M base/json/json_file_value_serializer.h View 1 chunk +2 lines, -2 lines 0 comments Download
M base/json/json_file_value_serializer.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M base/json/json_string_value_serializer.h View 1 chunk +2 lines, -2 lines 0 comments Download
M base/json/json_string_value_serializer.cc View 1 chunk +6 lines, -7 lines 0 comments Download
M base/json/json_value_serializer_unittest.cc View 13 chunks +21 lines, -21 lines 0 comments Download
M base/prefs/json_pref_store.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/test/gtest_util.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M base/values.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/android/contextualsearch/contextual_search_delegate.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/app_mode/kiosk_external_updater.cc View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/app_mode/startup_app_launcher.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/extensions/default_app_order.cc View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/input_method/component_extension_ime_manager_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/supervised/supervised_user_authentication.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/component_updater/component_installers_unittest.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/component_updater/pnacl_component_installer.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/component_updater/recovery_component_installer.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -6 lines 0 comments Download
M chrome/browser/extensions/api/developer_private/extension_info_generator_unittest.cc View 1 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/extensions/api/messaging/native_messaging_host_manifest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/chrome_info_map_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/component_loader.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_action_icon_factory_unittest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_icon_manager_unittest.cc View 1 2 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/extensions/external_pref_loader.cc View 1 2 3 4 5 1 chunk +8 lines, -4 lines 0 comments Download
M chrome/browser/extensions/user_script_listener_unittest.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/platform_util_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/prefs/pref_service_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prefs/tracked/pref_hash_browsertest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_site_list.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/themes/browser_theme_pack_unittest.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/app_list/start_page_service.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_install_prompt_test_utils.mm View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/nacl_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/component_flash_hint_file_linux.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/extension_test_util.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/util/uninstall_metrics.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/util/uninstall_metrics_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/test/media_router/media_router_integration_browsertest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/utility/importer/firefox_importer.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chromecast/base/serializers.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chromeos/app_mode/kiosk_oem_manifest_parser.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chromeos/dbus/fake_easy_unlock_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/network/onc/onc_test_utils.cc View 1 2 3 4 5 6 1 chunk +9 lines, -8 lines 0 comments Download
M chromeos/network/onc/onc_utils_unittest.cc View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M chromeos/system/statistics_provider.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chromeos/tools/onc_validator/onc_validator.cc View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -1 line 0 comments Download
M components/bookmarks/browser/bookmark_codec.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/bookmarks/browser/bookmark_codec_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M components/bookmarks/browser/bookmark_storage.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/json_schema/json_schema_validator_unittest_base.cc View 1 chunk +2 lines, -1 line 0 comments Download
M components/omnibox/browser/search_suggestion_parser.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/policy/core/common/config_dir_policy_loader.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/update_client/component_patcher.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/update_client/component_unpacker.cc View 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/api/printer_provider/printer_provider_api.cc View 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/extension_icon_image_unittest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -3 lines 0 comments Download
M extensions/browser/image_loader_unittest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -3 lines 0 comments Download
M extensions/common/extension_l10n_util.cc View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M extensions/common/file_util_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M extensions/common/manifest_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M extensions/utility/unpacker.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M google_apis/drive/test_util.cc View 1 chunk +1 line, -1 line 0 comments Download
M remoting/host/pairing_registry_delegate_linux.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M remoting/host/pairing_registry_delegate_win.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M rlz/chromeos/lib/rlz_value_store_chromeos.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/app_list/search/dictionary_data_store.cc View 1 2 3 4 5 6 1 chunk +7 lines, -7 lines 0 comments Download

Messages

Total messages: 27 (3 generated)
Olli Raula
Could you review base/* and optionally chrome/*. I will add more reviewers after your comments.
5 years, 2 months ago (2015-10-12 12:25:12 UTC) #2
Lei Zhang
I only reviewed base/ and chrome/ and came up with the following comments. I can ...
5 years, 2 months ago (2015-10-12 22:42:21 UTC) #3
Olli Raula
Thanks, I will check these things from all files and get back when ready. Just ...
5 years, 2 months ago (2015-10-13 07:19:33 UTC) #4
Lei Zhang
On 2015/10/13 07:19:33, olli.raula wrote: > Thanks, I will check these things from all files ...
5 years, 2 months ago (2015-10-13 07:37:03 UTC) #5
Olli Raula
"Can we provide some easier way to convert the return value to a scoped_ptr<base::DictionaryValue>?" I ...
5 years, 2 months ago (2015-10-13 10:51:39 UTC) #6
Olli Raula
"Can we provide some easier way to convert the return value to a scoped_ptr<base::DictionaryValue>?" I ...
5 years, 2 months ago (2015-10-13 10:51:57 UTC) #7
Olli Raula
On 2015/10/13 10:51:57, Olli Raula wrote: > "Can we provide some easier way to convert ...
5 years, 2 months ago (2015-10-13 11:17:57 UTC) #8
Lei Zhang
On 2015/10/13 10:51:39, Olli Raula wrote: > "Can we provide some easier way to convert ...
5 years, 2 months ago (2015-10-13 21:26:43 UTC) #9
Olli Raula
> // If |in_value| is a DictionaryValue, move |in_value| into |out_value| and > return true. ...
5 years, 2 months ago (2015-10-14 07:11:57 UTC) #10
Lei Zhang
On 2015/10/14 07:11:57, Olli Raula wrote: > > // If |in_value| is a DictionaryValue, move ...
5 years, 2 months ago (2015-10-14 08:32:52 UTC) #11
Olli Raula
On 2015/10/14 08:32:52, Lei Zhang wrote: > On 2015/10/14 07:11:57, Olli Raula wrote: > > ...
5 years, 2 months ago (2015-10-14 08:53:41 UTC) #12
Lei Zhang
On 2015/10/14 08:53:41, Olli Raula wrote: > On 2015/10/14 08:32:52, Lei Zhang wrote: > > ...
5 years, 2 months ago (2015-10-14 09:09:08 UTC) #13
Olli Raula
> Actually, now that you pointed me to there, doesn't this do what we want? ...
5 years, 2 months ago (2015-10-14 09:22:54 UTC) #14
Olli Raula
I have to leave before all bots are ready but they should be atleast mostly ...
5 years, 2 months ago (2015-10-14 15:13:37 UTC) #15
Lei Zhang
Again, from only reviewing the chrome/ changes: https://codereview.chromium.org/1394993004/diff/100001/chrome/browser/chromeos/app_mode/kiosk_external_updater.cc File chrome/browser/chromeos/app_mode/kiosk_external_updater.cc (right): https://codereview.chromium.org/1394993004/diff/100001/chrome/browser/chromeos/app_mode/kiosk_external_updater.cc#newcode49 chrome/browser/chromeos/app_mode/kiosk_external_updater.cc:49: // TODO(Olli ...
5 years, 2 months ago (2015-10-14 16:46:14 UTC) #16
Lei Zhang
Reviewed the rest. https://codereview.chromium.org/1394993004/diff/100001/chromeos/network/onc/onc_test_utils.cc File chromeos/network/onc/onc_test_utils.cc (right): https://codereview.chromium.org/1394993004/diff/100001/chromeos/network/onc/onc_test_utils.cc#newcode41 chromeos/network/onc/onc_test_utils.cc:41: scoped_ptr<base::DictionaryValue> dict = NULL; No need ...
5 years, 2 months ago (2015-10-14 16:55:35 UTC) #17
Olli Raula
Thanks for comments. They are all done now!
5 years, 2 months ago (2015-10-15 12:35:43 UTC) #18
Lei Zhang
https://codereview.chromium.org/1394993004/diff/160001/chrome/browser/component_updater/recovery_component_installer.cc File chrome/browser/component_updater/recovery_component_installer.cc (right): https://codereview.chromium.org/1394993004/diff/160001/chrome/browser/component_updater/recovery_component_installer.cc#newcode123 chrome/browser/component_updater/recovery_component_installer.cc:123: if (root) { We don't need this either. Just ...
5 years, 2 months ago (2015-10-15 17:36:11 UTC) #19
Olli Raula
Fixed > I'm a little worried about this file since the try bots passed. I ...
5 years, 2 months ago (2015-10-16 05:42:08 UTC) #20
Lei Zhang
LGTM Please go ahead and TBR a top level owner for everything else.
5 years, 2 months ago (2015-10-16 05:53:43 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1394993004/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1394993004/180001
5 years, 2 months ago (2015-10-16 05:56:33 UTC) #23
Lei Zhang
and actually +jam (for TBR)
5 years, 2 months ago (2015-10-16 05:57:53 UTC) #25
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 2 months ago (2015-10-16 06:16:50 UTC) #26
commit-bot: I haz the power
5 years, 2 months ago (2015-10-16 06:17:51 UTC) #27
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/ba04525cccccae530aa899882227d81b037eebff
Cr-Commit-Position: refs/heads/master@{#354458}

Powered by Google App Engine
This is Rietveld 408576698