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

Issue 2336863003: Change more base::ListValue methods to use std::unique_ptr. (Closed)

Created:
4 years, 3 months ago by dcheng
Modified:
4 years, 3 months ago
Reviewers:
danakj, brettw, Dan Beam
CC:
chromium-reviews, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, awdf+watch_chromium.org, Peter Beverloo, mlamouri+watch-notifications_chromium.org, jam, piman+watch_chromium.org, michaelpg+watch-md-settings_chromium.org, pam+watch_chromium.org, darin-cc_chromium.org, mlamouri+watch-permissions_chromium.org, chromium-apps-reviews_chromium.org, dbeam+watch-settings_chromium.org, stevenjb+watch-md-settings_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change more base::ListValue methods to use std::unique_ptr. AppendIfNotPresent() and Insert() now take unique_ptr instead of a raw pointer. BUG=581865 TBR=brettw@chromium.org Committed: https://crrev.com/66c7a4cb89abd6a94f36c1ef976e08f7f9878255 Cr-Commit-Position: refs/heads/master@{#418494}

Patch Set 1 #

Patch Set 2 : Header #

Total comments: 3

Patch Set 3 : CrOS fixes + address danakj comment #

Total comments: 4

Patch Set 4 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -105 lines) Patch
M base/values.h View 1 chunk +4 lines, -5 lines 0 comments Download
M base/values.cc View 1 2 1 chunk +5 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/extensions/users_private/users_private_api.cc View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller_browsertest.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/login_manager_test.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/users/chrome_user_manager_impl.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/users/supervised_user_manager_impl.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/policy/affiliation_test_helper.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/component_updater/supervised_user_whitelist_installer.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_management_test_util.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_web_ui.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/notifications/notifier_state_tracker.cc View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/permissions/chooser_context_base.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/accounts_options_handler.cc View 1 2 3 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/settings/settings_manage_profile_handler.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chromeos/dbus/fake_shill_manager_client.cc View 1 2 7 chunks +10 lines, -8 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats_unittest.cc View 3 chunks +6 lines, -3 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_utils.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M components/error_page/common/localized_error.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M components/syncable_prefs/pref_model_associator.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M components/user_manager/user_manager_base.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/gpu/compositor_util.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M extensions/browser/script_executor.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M extensions/common/url_pattern_set.cc View 2 chunks +3 lines, -1 line 0 comments Download
M net/http/http_server_properties_manager.cc View 2 chunks +10 lines, -7 lines 0 comments Download
M net/http/http_server_properties_manager_unittest.cc View 12 chunks +21 lines, -26 lines 0 comments Download
M rlz/chromeos/lib/rlz_value_store_chromeos.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M rlz/chromeos/lib/rlz_value_store_chromeos.cc View 1 2 4 chunks +5 lines, -4 lines 0 comments Download

Messages

Total messages: 28 (16 generated)
dcheng
Easy ones since they're not used too much.
4 years, 3 months ago (2016-09-13 22:53:05 UTC) #3
danakj
LGTM https://codereview.chromium.org/2336863003/diff/20001/base/values.cc File base/values.cc (right): https://codereview.chromium.org/2336863003/diff/20001/base/values.cc#newcode1091 base/values.cc:1091: list_.emplace_back(std::move(in_value)); push back? you have the type going ...
4 years, 3 months ago (2016-09-13 23:58:37 UTC) #7
dcheng
PTAL, I fixed some CrOS things that I missed the first time too. https://codereview.chromium.org/2336863003/diff/20001/base/values.cc File ...
4 years, 3 months ago (2016-09-14 01:16:51 UTC) #8
danakj
LGTM https://codereview.chromium.org/2336863003/diff/40001/chrome/browser/chromeos/extensions/users_private/users_private_api.cc File chrome/browser/chromeos/extensions/users_private/users_private_api.cc (right): https://codereview.chromium.org/2336863003/diff/40001/chrome/browser/chromeos/extensions/users_private/users_private_api.cc#newcode87 chrome/browser/chromeos/extensions/users_private/users_private_api.cc:87: for (const auto& user : users) {} https://codereview.chromium.org/2336863003/diff/40001/chrome/browser/ui/webui/options/chromeos/accounts_options_handler.cc ...
4 years, 3 months ago (2016-09-14 01:55:59 UTC) #11
dcheng
https://codereview.chromium.org/2336863003/diff/40001/chrome/browser/chromeos/extensions/users_private/users_private_api.cc File chrome/browser/chromeos/extensions/users_private/users_private_api.cc (right): https://codereview.chromium.org/2336863003/diff/40001/chrome/browser/chromeos/extensions/users_private/users_private_api.cc#newcode87 chrome/browser/chromeos/extensions/users_private/users_private_api.cc:87: for (const auto& user : users) On 2016/09/14 01:55:59, ...
4 years, 3 months ago (2016-09-14 03:06:11 UTC) #12
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/2336863003/60001
4 years, 3 months ago (2016-09-14 03:07:16 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/258976)
4 years, 3 months ago (2016-09-14 03:17:34 UTC) #17
dcheng
TBRing brettw
4 years, 3 months ago (2016-09-14 05:03:36 UTC) #20
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/2336863003/60001
4 years, 3 months ago (2016-09-14 05:03:48 UTC) #22
Dan Beam
/options/ is set noparent, so lgtm for good measure
4 years, 3 months ago (2016-09-14 05:13:11 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-14 05:50:18 UTC) #26
commit-bot: I haz the power
4 years, 3 months ago (2016-09-14 05:51:48 UTC) #28
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/66c7a4cb89abd6a94f36c1ef976e08f7f9878255
Cr-Commit-Position: refs/heads/master@{#418494}

Powered by Google App Engine
This is Rietveld 408576698