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

Issue 1849323003: Convert //sandbox to use std::unique_ptr (Closed)

Created:
4 years, 8 months ago by Mostyn Bramley-Moore
Modified:
4 years, 8 months ago
CC:
chromium-reviews, jln+watch_chromium.org, rickyz+watch_chromium.org, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert //sandbox to use std::unique_ptr BUG=554298 Committed: https://crrev.com/d521b63cb0fe3d78ed64bbba2c4cfacfeb7ebfd3 Cr-Commit-Position: refs/heads/master@{#385445}

Patch Set 1 #

Patch Set 2 : fixups #

Patch Set 3 : rebase on master #

Total comments: 4

Patch Set 4 : add missing include #

Patch Set 5 : update mojo sandbox header also #

Patch Set 6 : fixup nonsfi_sandbox_unittest.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -163 lines) Patch
M components/nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M mojo/shell/runner/host/linux_sandbox.h View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M sandbox/linux/integration_tests/bpf_dsl_seccomp_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M sandbox/linux/integration_tests/seccomp_broker_process_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M sandbox/linux/seccomp-bpf/bpf_tester_compatibility_delegate.h View 2 chunks +4 lines, -3 lines 0 comments Download
M sandbox/linux/seccomp-bpf/bpf_tests.h View 2 chunks +4 lines, -2 lines 0 comments Download
M sandbox/linux/seccomp-bpf/bpf_tests_unittest.cc View 3 chunks +5 lines, -4 lines 0 comments Download
M sandbox/linux/seccomp-bpf/sandbox_bpf.h View 2 chunks +3 lines, -2 lines 0 comments Download
M sandbox/linux/seccomp-bpf/sandbox_bpf.cc View 1 chunk +0 lines, -1 line 0 comments Download
M sandbox/linux/seccomp-bpf/sandbox_bpf_test_runner.h View 4 chunks +5 lines, -4 lines 0 comments Download
M sandbox/linux/seccomp-bpf/sandbox_bpf_test_runner.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M sandbox/linux/services/credentials.h View 1 chunk +0 lines, -1 line 0 comments Download
M sandbox/linux/services/credentials_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M sandbox/linux/services/namespace_sandbox_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M sandbox/linux/services/proc_util.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M sandbox/linux/services/thread_helpers_unittests.cc View 1 chunk +0 lines, -1 line 0 comments Download
M sandbox/linux/suid/client/setuid_sandbox_client.h View 2 chunks +3 lines, -2 lines 0 comments Download
M sandbox/linux/suid/client/setuid_sandbox_client_unittest.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M sandbox/linux/suid/client/setuid_sandbox_host.h View 2 chunks +3 lines, -2 lines 0 comments Download
M sandbox/linux/suid/client/setuid_sandbox_host.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M sandbox/linux/suid/client/setuid_sandbox_host_unittest.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M sandbox/linux/syscall_broker/broker_process.h View 2 chunks +2 lines, -2 lines 0 comments Download
M sandbox/linux/syscall_broker/broker_process.cc View 1 chunk +0 lines, -1 line 0 comments Download
M sandbox/linux/syscall_broker/broker_process_unittest.cc View 5 chunks +5 lines, -4 lines 0 comments Download
M sandbox/mac/bootstrap_sandbox.h View 4 chunks +5 lines, -5 lines 0 comments Download
M sandbox/mac/bootstrap_sandbox.cc View 1 4 chunks +7 lines, -5 lines 0 comments Download
M sandbox/mac/bootstrap_sandbox_unittest.mm View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M sandbox/mac/launchd_interception_server.h View 3 chunks +4 lines, -3 lines 0 comments Download
M sandbox/mac/mach_message_server.h View 2 chunks +3 lines, -2 lines 0 comments Download
M sandbox/mac/os_compatibility.h View 2 chunks +2 lines, -2 lines 0 comments Download
M sandbox/mac/os_compatibility.cc View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M sandbox/mac/xpc_message_server.h View 2 chunks +3 lines, -2 lines 0 comments Download
M sandbox/win/src/acl.h View 2 chunks +3 lines, -2 lines 0 comments Download
M sandbox/win/src/acl.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M sandbox/win/src/address_sanitizer_test.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M sandbox/win/src/app_container.h View 1 chunk +0 lines, -1 line 0 comments Download
M sandbox/win/src/app_container.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M sandbox/win/src/app_container_unittest.cc View 1 2 chunks +4 lines, -1 line 0 comments Download
M sandbox/win/src/broker_services.cc View 3 chunks +6 lines, -4 lines 0 comments Download
M sandbox/win/src/handle_closer.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M sandbox/win/src/interception.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M sandbox/win/src/interception_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M sandbox/win/src/process_mitigations_test.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M sandbox/win/src/process_policy_test.cc View 2 chunks +1 line, -2 lines 0 comments Download
M sandbox/win/src/process_thread_policy.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M sandbox/win/src/restricted_token.cc View 9 chunks +11 lines, -11 lines 0 comments Download
M sandbox/win/src/sandbox_policy_base.h View 2 chunks +3 lines, -3 lines 0 comments Download
M sandbox/win/src/service_resolver_32.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M sandbox/win/src/service_resolver_64.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M sandbox/win/src/service_resolver_unittest.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M sandbox/win/src/sharedmem_ipc_server.cc View 3 chunks +5 lines, -6 lines 0 comments Download
M sandbox/win/src/target_process.h View 2 chunks +4 lines, -3 lines 0 comments Download
M sandbox/win/src/target_process.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M sandbox/win/src/top_level_dispatcher.h View 2 chunks +9 lines, -8 lines 0 comments Download
M sandbox/win/src/top_level_dispatcher.cc View 1 chunk +0 lines, -1 line 0 comments Download
M sandbox/win/src/win_utils.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M sandbox/win/src/window.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M sandbox/win/wow_helper/service64_resolver.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M sandbox/win/wow_helper/wow_helper.vcproj View 1 chunk +0 lines, -8 lines 0 comments Download

Messages

Total messages: 55 (26 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1849323003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1849323003/1
4 years, 8 months ago (2016-04-01 19:35:44 UTC) #2
Mostyn Bramley-Moore
@cpu: please take a look.
4 years, 8 months ago (2016-04-01 19:36:57 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/181545) mac_chromium_gn_rel on ...
4 years, 8 months ago (2016-04-01 20:02:43 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1849323003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1849323003/20001
4 years, 8 months ago (2016-04-01 20:23:01 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/204258)
4 years, 8 months ago (2016-04-01 21:32:59 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1849323003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1849323003/40001
4 years, 8 months ago (2016-04-01 21:49:04 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-01 23:50:36 UTC) #14
jln (very slow on Chromium)
Matthew, would you have time to take a look? (cpu or myself can rubberstamp if ...
4 years, 8 months ago (2016-04-04 20:16:32 UTC) #17
Will Harris
https://codereview.chromium.org/1849323003/diff/40001/sandbox/win/src/acl.cc File sandbox/win/src/acl.cc (right): https://codereview.chromium.org/1849323003/diff/40001/sandbox/win/src/acl.cc#newcode11 sandbox/win/src/acl.cc:11: #include "base/memory/free_deleter.h" general comment - why not include <memory> ...
4 years, 8 months ago (2016-04-04 20:20:25 UTC) #19
Mostyn Bramley-Moore
https://codereview.chromium.org/1849323003/diff/40001/sandbox/win/src/acl.cc File sandbox/win/src/acl.cc (right): https://codereview.chromium.org/1849323003/diff/40001/sandbox/win/src/acl.cc#newcode11 sandbox/win/src/acl.cc:11: #include "base/memory/free_deleter.h" On 2016/04/04 20:20:25, Will Harris wrote: > ...
4 years, 8 months ago (2016-04-04 20:48:36 UTC) #21
mdempsky
lgtm for sandbox/linux
4 years, 8 months ago (2016-04-04 20:53:56 UTC) #22
dcheng
On 2016/04/04 at 20:48:36, mostynb wrote: > https://codereview.chromium.org/1849323003/diff/40001/sandbox/win/src/acl.cc > File sandbox/win/src/acl.cc (right): > > https://codereview.chromium.org/1849323003/diff/40001/sandbox/win/src/acl.cc#newcode11 ...
4 years, 8 months ago (2016-04-04 20:58:56 UTC) #23
Will Harris
by the golden dcheng rule there is one #include missing? otherwise lgtm for sandbox/win https://codereview.chromium.org/1849323003/diff/40001/sandbox/win/src/address_sanitizer_test.cc ...
4 years, 8 months ago (2016-04-04 21:05:57 UTC) #24
mdempsky
sandbox/mac LGTM too (though I'm only a sandbox/linux OWNER) rsesek/cpu: Please review (or RSLGTM if ...
4 years, 8 months ago (2016-04-04 21:40:35 UTC) #26
Robert Sesek
sandbox/mac LGTM
4 years, 8 months ago (2016-04-04 21:43:05 UTC) #27
jln (very slow on Chromium)
overall LGTM then based on previous reviews.
4 years, 8 months ago (2016-04-04 23:04:42 UTC) #28
Mostyn Bramley-Moore
Thanks. https://codereview.chromium.org/1849323003/diff/40001/sandbox/win/src/address_sanitizer_test.cc File sandbox/win/src/address_sanitizer_test.cc (right): https://codereview.chromium.org/1849323003/diff/40001/sandbox/win/src/address_sanitizer_test.cc#newcode5 sandbox/win/src/address_sanitizer_test.cc:5: #include <stdio.h> On 2016/04/04 21:05:57, Will Harris wrote: ...
4 years, 8 months ago (2016-04-05 07:11:00 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1849323003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1849323003/60001
4 years, 8 months ago (2016-04-05 07:11:27 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/116680) chromeos_x86-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 8 months ago (2016-04-05 07:22:10 UTC) #34
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1849323003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1849323003/80001
4 years, 8 months ago (2016-04-05 14:31:29 UTC) #36
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/149517) linux_chromium_compile_dbg_ng on ...
4 years, 8 months ago (2016-04-05 14:50:20 UTC) #38
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1849323003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1849323003/100001
4 years, 8 months ago (2016-04-05 21:37:12 UTC) #40
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-05 22:47:43 UTC) #43
Mostyn Bramley-Moore
@rickyz: can you please take a look at mojo/shell/runner/host/linux_sandbox.h ? @hidehiko: can you please look ...
4 years, 8 months ago (2016-04-05 22:59:58 UTC) #45
rickyz (no longer on Chrome)
mojo/shell/runner/host/linux_sandbox.h lgtm, thanks!
4 years, 8 months ago (2016-04-05 23:00:53 UTC) #47
hidehiko
components/nacl/loader/nonsfi/ lgtm. Thank you for clean up!
4 years, 8 months ago (2016-04-06 13:05:31 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1849323003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1849323003/100001
4 years, 8 months ago (2016-04-06 13:16:14 UTC) #51
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 8 months ago (2016-04-06 13:22:18 UTC) #53
commit-bot: I haz the power
4 years, 8 months ago (2016-04-06 13:23:56 UTC) #55
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/d521b63cb0fe3d78ed64bbba2c4cfacfeb7ebfd3
Cr-Commit-Position: refs/heads/master@{#385445}

Powered by Google App Engine
This is Rietveld 408576698