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

Issue 2899743002: Remove raw base::DictionaryValue::Set in //extensions (Closed)

Created:
3 years, 7 months ago by jdoerrie
Modified:
3 years, 6 months ago
Reviewers:
vabr (Chromium), Devlin
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, jshin+watch_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove raw base::DictionaryValue::Set in //extensions This change removes the deprecated raw pointer version of base::DictionaryValue::Set in //extensions and replaces it with the unique pointer version or other convenience functions where appropriate. BUG=646113, 581865 Review-Url: https://codereview.chromium.org/2899743002 Cr-Commit-Position: refs/heads/master@{#477602} Committed: https://chromium.googlesource.com/chromium/src/+/6ff270cabd2fe758de8cf57060dd660ae7d8ef68

Patch Set 1 #

Patch Set 2 : Fix Compilation and Test #

Patch Set 3 : Rebase #

Patch Set 4 : Rebase #

Total comments: 24

Patch Set 5 : Addressed comments. #

Total comments: 2

Patch Set 6 : Addressed nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -154 lines) Patch
M extensions/browser/api/app_runtime/app_runtime_api.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/api/app_window/app_window_api.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M extensions/browser/api/declarative/declarative_api.cc View 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/api/socket/socket_api.cc View 1 chunk +2 lines, -1 line 0 comments Download
M extensions/browser/api/usb/usb_api.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M extensions/browser/api/web_request/web_request_api.cc View 4 chunks +10 lines, -9 lines 0 comments Download
M extensions/browser/api/web_request/web_request_api_helpers.h View 1 chunk +2 lines, -3 lines 0 comments Download
M extensions/browser/api/web_request/web_request_api_helpers.cc View 4 chunks +9 lines, -8 lines 0 comments Download
M extensions/browser/api/web_request/web_request_event_details.cc View 1 2 3 4 3 chunks +18 lines, -8 lines 0 comments Download
M extensions/browser/app_window/app_window.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/computed_hashes.cc View 1 2 3 4 2 chunks +12 lines, -12 lines 0 comments Download
M extensions/browser/event_listener_map_unittest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/extension_prefs.cc View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M extensions/browser/guest_view/app_view/app_view_guest.cc View 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/guest_view/web_view/javascript_dialog_helper.cc View 1 chunk +7 lines, -7 lines 0 comments Download
M extensions/browser/guest_view/web_view/web_view_find_helper.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M extensions/browser/guest_view/web_view/web_view_permission_helper.cc View 2 chunks +2 lines, -1 line 0 comments Download
M extensions/browser/value_store/value_store_change.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M extensions/common/event_filter_unittest.cc View 1 2 3 4 2 chunks +8 lines, -9 lines 0 comments Download
M extensions/common/extension_l10n_util_unittest.cc View 1 2 3 4 5 6 chunks +52 lines, -45 lines 0 comments Download
M extensions/common/extension_set_unittest.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M extensions/common/file_util_unittest.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M extensions/common/manifest_handlers/oauth2_manifest_unittest.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M extensions/common/message_bundle_unittest.cc View 1 2 3 4 4 chunks +17 lines, -28 lines 0 comments Download
M extensions/utility/unpacker.cc View 1 chunk +1 line, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 39 (30 generated)
jdoerrie
vabr@chromium.org: Please review the CL in detail. rdevlin.cronin@chromium.org: Please spot-check and rubber-stamp.
3 years, 6 months ago (2017-06-02 13:28:10 UTC) #17
Devlin
https://codereview.chromium.org/2899743002/diff/50001/extensions/browser/api/web_request/web_request_api.cc File extensions/browser/api/web_request/web_request_api.cc (right): https://codereview.chromium.org/2899743002/diff/50001/extensions/browser/api/web_request/web_request_api.cc#newcode1629 extensions/browser/api/web_request/web_request_api.cc:1629: return std::move(serialized_headers); we shouldn't need std::move() here, I'd think? ...
3 years, 6 months ago (2017-06-02 15:38:49 UTC) #18
vabr (Chromium)
Jan, thanks for the CL and code improvement! LGTM. Devlin, thanks for the careful review. ...
3 years, 6 months ago (2017-06-03 11:14:52 UTC) #21
Devlin
https://codereview.chromium.org/2899743002/diff/50001/extensions/browser/api/web_request/web_request_event_details.cc File extensions/browser/api/web_request/web_request_event_details.cc (right): https://codereview.chromium.org/2899743002/diff/50001/extensions/browser/api/web_request/web_request_event_details.cc#newcode201 extensions/browser/api/web_request/web_request_event_details.cc:201: base::MakeUnique<base::Value>(*request_body_)); On 2017/06/03 11:14:52, vabr (hobby-only until 5 June) ...
3 years, 6 months ago (2017-06-05 13:27:33 UTC) #22
jdoerrie
Thanks for the review so far! https://codereview.chromium.org/2899743002/diff/50001/extensions/browser/api/web_request/web_request_event_details.cc File extensions/browser/api/web_request/web_request_event_details.cc (right): https://codereview.chromium.org/2899743002/diff/50001/extensions/browser/api/web_request/web_request_event_details.cc#newcode199 extensions/browser/api/web_request/web_request_event_details.cc:199: if ((extra_info_spec & ...
3 years, 6 months ago (2017-06-06 12:40:23 UTC) #25
Devlin
lgtm! https://codereview.chromium.org/2899743002/diff/70001/extensions/common/extension_l10n_util_unittest.cc File extensions/common/extension_l10n_util_unittest.cc (right): https://codereview.chromium.org/2899743002/diff/70001/extensions/common/extension_l10n_util_unittest.cc#newcode436 extensions/common/extension_l10n_util_unittest.cc:436: base::ListValue* handlers = manifest.SetList( nit: Can we restructure ...
3 years, 6 months ago (2017-06-06 14:07:47 UTC) #26
jdoerrie
https://codereview.chromium.org/2899743002/diff/70001/extensions/common/extension_l10n_util_unittest.cc File extensions/common/extension_l10n_util_unittest.cc (right): https://codereview.chromium.org/2899743002/diff/70001/extensions/common/extension_l10n_util_unittest.cc#newcode436 extensions/common/extension_l10n_util_unittest.cc:436: base::ListValue* handlers = manifest.SetList( On 2017/06/06 14:07:47, Devlin wrote: ...
3 years, 6 months ago (2017-06-06 14:48:32 UTC) #31
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/2899743002/90001
3 years, 6 months ago (2017-06-07 10:25:43 UTC) #36
commit-bot: I haz the power
3 years, 6 months ago (2017-06-07 10:32:08 UTC) #39
Message was sent while issue was closed.
Committed patchset #6 (id:90001) as
https://chromium.googlesource.com/chromium/src/+/6ff270cabd2fe758de8cf57060dd...

Powered by Google App Engine
This is Rietveld 408576698