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

Issue 2773513002: Stop passing raw pointers to DictionaryValue::Set, part 1 (Closed)

Created:
3 years, 9 months ago by vabr (Chromium)
Modified:
3 years, 9 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, sadrul, vmpstr+watch_chromium.org, tzik, nhiroki, chromium-apps-reviews_chromium.org, kalyank, cc-bugs_chromium.org, kinuko+fileapi
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Stop passing raw pointers to DictionaryValue::Set, part 1 base::Value API has alternatives with unique_ptr, and passing ownership with raw pointers can hide bugs. Therefore, this CL migrates a portion of Chromium code to use the unique_ptr-based API. BUG=697817 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel TBR=finnur@chromium.org Review-Url: https://codereview.chromium.org/2773513002 Cr-Commit-Position: refs/heads/master@{#459164} Committed: https://chromium.googlesource.com/chromium/src/+/bce355c4052c6a9c3863c355a7150b4df8f08b0c

Patch Set 1 #

Patch Set 2 : Fix compilation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -43 lines) Patch
M ash/touch/touch_hud_debug.cc View 2 chunks +2 lines, -1 line 0 comments Download
M base/value_conversions.h View 2 chunks +4 lines, -3 lines 0 comments Download
M base/value_conversions.cc View 3 chunks +5 lines, -4 lines 0 comments Download
M cc/layers/layer_impl.cc View 2 chunks +9 lines, -9 lines 0 comments Download
M cc/layers/ui_resource_layer_impl.cc View 1 chunk +5 lines, -5 lines 0 comments Download
M cc/quads/nine_patch_generator.cc View 1 chunk +7 lines, -7 lines 0 comments Download
M chrome/browser/download/download_target_determiner_unittest.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/file_system/file_system_api.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/prefs/pref_service.h View 1 chunk +2 lines, -1 line 0 comments Download
M components/prefs/pref_service.cc View 5 chunks +11 lines, -10 lines 0 comments Download
M components/prefs/pref_service_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 23 (13 generated)
vabr (Chromium)
Hi danakj@ and pam@, Could you please review the following? pam@ -- components/prefs/* danakj@ -- ...
3 years, 9 months ago (2017-03-22 22:31:37 UTC) #9
vabr (Chromium)
Asking more OWNERs for review: derat@ -- ash/touch/touch_hud_debug.cc qinmin@ -- chrome/browser/download/download_target_determiner_unittest.cc finnur@ -- chrome/browser/extensions/api/file_system/file_system_api.cc Thanks! ...
3 years, 9 months ago (2017-03-22 22:38:02 UTC) #11
Daniel Erat
lgtm for ash/
3 years, 9 months ago (2017-03-22 22:41:13 UTC) #12
qinmin
lgtm
3 years, 9 months ago (2017-03-23 06:10:56 UTC) #13
Pam (message me for reviews)
On 2017/03/23 06:10:56, qinmin wrote: > lgtm prefs/ LGTM
3 years, 9 months ago (2017-03-23 15:10:16 UTC) #14
danakj
base and cc LGTM
3 years, 9 months ago (2017-03-23 15:18:19 UTC) #15
vabr (Chromium)
Thanks, all! Finnur, the change in chrome/browser/extensions/api/file_system/file_system_api.cc is very simple and a mechanical consequence of ...
3 years, 9 months ago (2017-03-23 18:41:28 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/2773513002/20001
3 years, 9 months ago (2017-03-23 18:43:02 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/bce355c4052c6a9c3863c355a7150b4df8f08b0c
3 years, 9 months ago (2017-03-23 18:53:30 UTC) #22
Finnur
3 years, 9 months ago (2017-03-24 09:46:13 UTC) #23
Message was sent while issue was closed.
> I will TBR you for that.

Not a problem. LGTM.

Powered by Google App Engine
This is Rietveld 408576698