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

Issue 2287733002: Switch //components away from base::ListValue::Append(Value*) overload. (Closed)

Created:
4 years, 3 months ago by dcheng
Modified:
4 years, 3 months ago
Reviewers:
danakj, vinodsonkusare77, blundell
CC:
chromium-reviews, zea+watch_chromium.org, Peter Beverloo, tfarina, johnme+watch_chromium.org, noyau+watch_chromium.org, sync-reviews_chromium.org, devtools-reviews_chromium.org, pfeldman
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Switch //components away from base::ListValue::Append(Value*) overload. This overload is deprecated: prefer the std::unique_ptr<Value> version, which helps the compiler enforce that ownership transfer occurs. BUG=581865 R=danakj@chromium.org TBR=blundell@chromium.org Committed: https://crrev.com/32fd7c4ca1b445b9f0044bed9b8686aee59ceefe Cr-Commit-Position: refs/heads/master@{#414932}

Patch Set 1 #

Patch Set 2 : headers #

Patch Set 3 : rebase #

Total comments: 5

Patch Set 4 : Test fix #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -113 lines) Patch
M components/bookmarks/browser/bookmark_codec.h View 2 chunks +3 lines, -2 lines 0 comments Download
M components/bookmarks/browser/bookmark_codec.cc View 3 chunks +5 lines, -3 lines 2 comments Download
M components/bookmarks/managed/managed_bookmarks_tracker_unittest.cc View 2 chunks +9 lines, -7 lines 0 comments Download
M components/cloud_devices/common/description_items_inl.h View 3 chunks +10 lines, -6 lines 2 comments Download
M components/cloud_devices/common/printer_description.cc View 1 2 chunks +5 lines, -2 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_event_store.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/devtools_http_handler/devtools_http_handler.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/devtools_http_handler/devtools_http_handler.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M components/domain_reliability/scheduler.cc View 1 chunk +0 lines, -1 line 0 comments Download
M components/error_page/common/localized_error.cc View 3 chunks +6 lines, -4 lines 2 comments Download
M components/error_page/renderer/net_error_helper_core_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/flags_ui/flags_state.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M components/gcm_driver/gcm_internals_helper.cc View 4 chunks +15 lines, -18 lines 0 comments Download
M components/history/core/browser/web_history_service.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M components/json_schema/json_schema_validator_unittest_base.cc View 2 chunks +2 lines, -1 line 0 comments Download
M components/policy/core/common/configuration_policy_provider_test.cc View 1 chunk +0 lines, -1 line 0 comments Download
M components/policy/core/common/schema_unittest.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M components/search_engines/default_search_manager_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M components/search_engines/template_url_prepopulate_data_unittest.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M components/signin/core/browser/about_signin_internals.h View 1 chunk +1 line, -1 line 0 comments Download
M components/signin/core/browser/about_signin_internals.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M components/signin/core/browser/account_tracker_service.cc View 2 chunks +2 lines, -1 line 0 comments Download
M components/signin/core/browser/account_tracker_service_unittest.cc View 1 2 3 4 chunks +16 lines, -14 lines 0 comments Download
M components/spellcheck/browser/spellcheck_action.h View 2 chunks +4 lines, -3 lines 0 comments Download
M components/spellcheck/browser/spellcheck_action.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/sync/device_info/device_info.h View 1 chunk +1 line, -1 line 0 comments Download
M components/sync/device_info/device_info.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/sync/driver/about_sync_util.cc View 4 chunks +4 lines, -3 lines 0 comments Download
M components/sync/syncable/entry_kernel.h View 1 chunk +2 lines, -4 lines 0 comments Download
M components/sync/syncable/entry_kernel.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M components/sync/syncable/write_transaction_info.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M components/user_prefs/tracked/pref_hash_calculator_unittest.cc View 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 28 (16 generated)
dcheng
danakj@, mind doing an overall review? I'll TBR the actual OWNERS.
4 years, 3 months ago (2016-08-26 21:40:04 UTC) #4
dcheng
Really fixed now!
4 years, 3 months ago (2016-08-26 22:53:00 UTC) #10
danakj
LGTM https://codereview.chromium.org/2287733002/diff/40001/components/cloud_devices/common/description_items_inl.h File components/cloud_devices/common/description_items_inl.h (right): https://codereview.chromium.org/2287733002/diff/40001/components/cloud_devices/common/description_items_inl.h#newcode70 components/cloud_devices/common/description_items_inl.h:70: std::unique_ptr<base::DictionaryValue> option_value( If I had my way these ...
4 years, 3 months ago (2016-08-26 22:59:24 UTC) #12
dcheng
https://codereview.chromium.org/2287733002/diff/40001/components/cloud_devices/common/description_items_inl.h File components/cloud_devices/common/description_items_inl.h (right): https://codereview.chromium.org/2287733002/diff/40001/components/cloud_devices/common/description_items_inl.h#newcode70 components/cloud_devices/common/description_items_inl.h:70: std::unique_ptr<base::DictionaryValue> option_value( On 2016/08/26 22:59:24, danakj wrote: > If ...
4 years, 3 months ago (2016-08-26 23:03:38 UTC) #13
dcheng
TBRing blundell@ for OWNERS.
4 years, 3 months ago (2016-08-26 23:04:29 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2287733002/60001
4 years, 3 months ago (2016-08-27 01:05:30 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-08-27 11:16:23 UTC) #22
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/32fd7c4ca1b445b9f0044bed9b8686aee59ceefe Cr-Commit-Position: refs/heads/master@{#414932}
4 years, 3 months ago (2016-08-27 11:17:55 UTC) #24
blundell
lgtm https://codereview.chromium.org/2287733002/diff/60001/components/bookmarks/browser/bookmark_codec.cc File components/bookmarks/browser/bookmark_codec.cc (right): https://codereview.chromium.org/2287733002/diff/60001/components/bookmarks/browser/bookmark_codec.cc#newcode152 components/bookmarks/browser/bookmark_codec.cc:152: return std::move(value); just to verify my own understanding ...
4 years, 3 months ago (2016-08-29 07:39:15 UTC) #25
vinodsonkusare77_gmail.com
https://youtu.be/ZB29OFBS2w8?list=UUWQUZfAdokV83KKjLl-sDeQ On Mon, Aug 29, 2016 at 1:09 PM, <blundell@chromium.org> wrote: > lgtm > > ...
4 years, 3 months ago (2016-08-30 06:33:39 UTC) #26
dcheng
https://codereview.chromium.org/2287733002/diff/60001/components/bookmarks/browser/bookmark_codec.cc File components/bookmarks/browser/bookmark_codec.cc (right): https://codereview.chromium.org/2287733002/diff/60001/components/bookmarks/browser/bookmark_codec.cc#newcode152 components/bookmarks/browser/bookmark_codec.cc:152: return std::move(value); On 2016/08/29 07:39:15, blundell wrote: > just ...
4 years, 3 months ago (2016-08-30 17:41:55 UTC) #27
blundell
4 years, 3 months ago (2016-08-31 09:03:31 UTC) #28
Message was sent while issue was closed.
Thanks for the explanations!

Powered by Google App Engine
This is Rietveld 408576698