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

Issue 570163003: Large IWYU cleanup for seccomp-bpf (Closed)

Created:
6 years, 3 months ago by mdempsky
Modified:
6 years, 3 months ago
CC:
chromium-reviews, jln+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@trap-errorcode
Project:
chromium
Visibility:
Public.

Description

Large IWYU cleanup for seccomp-bpf I'm reasonably confident that all of the seccomp-bpf/*.h files are now IWYU clean. There might still be some missing/superfluous #include lines in some of the .cc files, but it should overall be much better than before. Two particular changes to note: 1. "base/basictypes.h" is deprecated in favor of <stdint.h> (for standard *int*_t types) and/or "base/macros.h" for DISALLOW_*() macros. 2. This also moves the #include "foo.h" lines to the top of each foo.cc file, per style guide. BUG=408845 Committed: https://crrev.com/ab2d46af89c657ab4fd01ab00de1ba2a6ad73f8d Cr-Commit-Position: refs/heads/master@{#295161}

Patch Set 1 #

Patch Set 2 : Two small tweaks #

Patch Set 3 : Sync to master #

Total comments: 4

Patch Set 4 : Remove ErrorCode's default constructor and ET_INVALID #

Patch Set 5 : Revert previous patch set #

Patch Set 6 : Sort #includes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -42 lines) Patch
M components/nacl/loader/nonsfi/nonsfi_sandbox_sigsys_unittest.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M content/common/sandbox_linux/bpf_gpu_policy_linux.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M sandbox/linux/bpf_dsl/bpf_dsl_more_unittest.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M sandbox/linux/bpf_dsl/bpf_dsl_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M sandbox/linux/seccomp-bpf/bpf_tests.h View 1 chunk +1 line, -1 line 0 comments Download
M sandbox/linux/seccomp-bpf/codegen.h View 1 chunk +3 lines, -3 lines 0 comments Download
M sandbox/linux/seccomp-bpf/codegen.cc View 1 chunk +8 lines, -1 line 0 comments Download
M sandbox/linux/seccomp-bpf/codegen_unittest.cc View 1 chunk +7 lines, -2 lines 0 comments Download
M sandbox/linux/seccomp-bpf/die.h View 1 chunk +1 line, -1 line 0 comments Download
M sandbox/linux/seccomp-bpf/die.cc View 1 chunk +5 lines, -2 lines 0 comments Download
M sandbox/linux/seccomp-bpf/errorcode.h View 4 2 chunks +1 line, -4 lines 0 comments Download
M sandbox/linux/seccomp-bpf/errorcode.cc View 1 4 1 chunk +6 lines, -1 line 0 comments Download
M sandbox/linux/seccomp-bpf/errorcode_unittest.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M sandbox/linux/seccomp-bpf/sandbox_bpf.h View 1 2 1 chunk +3 lines, -9 lines 0 comments Download
M sandbox/linux/seccomp-bpf/sandbox_bpf.cc View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M sandbox/linux/seccomp-bpf/sandbox_bpf_compatibility_policy.h View 1 chunk +0 lines, -1 line 0 comments Download
M sandbox/linux/seccomp-bpf/sandbox_bpf_policy.h View 1 chunk +1 line, -1 line 0 comments Download
M sandbox/linux/seccomp-bpf/sandbox_bpf_test_runner.h View 1 chunk +1 line, -1 line 0 comments Download
M sandbox/linux/seccomp-bpf/sandbox_bpf_test_runner.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M sandbox/linux/seccomp-bpf/syscall_iterator.h View 1 chunk +1 line, -1 line 0 comments Download
M sandbox/linux/seccomp-bpf/syscall_iterator_unittest.cc View 1 chunk +4 lines, -1 line 0 comments Download
M sandbox/linux/seccomp-bpf/verifier.h View 1 chunk +7 lines, -3 lines 0 comments Download
M sandbox/linux/seccomp-bpf/verifier.cc View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 11 (2 generated)
mdempsky
Pretty mechanical; no real code changes except for moving one of ErrorCode's constructor definitions from ...
6 years, 3 months ago (2014-09-16 20:37:17 UTC) #2
jln (very slow on Chromium)
Very nice cleanup, thanks! lgtm https://codereview.chromium.org/570163003/diff/40001/sandbox/linux/seccomp-bpf/errorcode.h File sandbox/linux/seccomp-bpf/errorcode.h (right): https://codereview.chromium.org/570163003/diff/40001/sandbox/linux/seccomp-bpf/errorcode.h#newcode113 sandbox/linux/seccomp-bpf/errorcode.h:113: ErrorCode(); Do we still ...
6 years, 3 months ago (2014-09-16 20:45:00 UTC) #3
mdempsky
https://codereview.chromium.org/570163003/diff/40001/sandbox/linux/seccomp-bpf/errorcode.h File sandbox/linux/seccomp-bpf/errorcode.h (right): https://codereview.chromium.org/570163003/diff/40001/sandbox/linux/seccomp-bpf/errorcode.h#newcode113 sandbox/linux/seccomp-bpf/errorcode.h:113: ErrorCode(); On 2014/09/16 20:44:59, jln wrote: > Do we ...
6 years, 3 months ago (2014-09-16 20:50:24 UTC) #4
mdempsky
On 2014/09/16 20:50:24, mdempsky wrote: > Good point. No, it's no longer needed. I've removed ...
6 years, 3 months ago (2014-09-16 20:59:08 UTC) #5
mdempsky
https://codereview.chromium.org/570163003/diff/40001/sandbox/linux/seccomp-bpf/sandbox_bpf.cc File sandbox/linux/seccomp-bpf/sandbox_bpf.cc (right): https://codereview.chromium.org/570163003/diff/40001/sandbox/linux/seccomp-bpf/sandbox_bpf.cc#newcode13 sandbox/linux/seccomp-bpf/sandbox_bpf.cc:13: #include <linux/filter.h> On 2014/09/16 20:45:00, jln wrote: > nit: ...
6 years, 3 months ago (2014-09-16 21:06:14 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/570163003/100001
6 years, 3 months ago (2014-09-16 21:08:34 UTC) #8
commit-bot: I haz the power
Committed patchset #6 (id:100001) as f46c8d242c023bc6dfdabaddb66007ea50d89a53
6 years, 3 months ago (2014-09-16 22:35:18 UTC) #9
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/ab2d46af89c657ab4fd01ab00de1ba2a6ad73f8d Cr-Commit-Position: refs/heads/master@{#295161}
6 years, 3 months ago (2014-09-16 22:36:11 UTC) #10
aurimas (slooooooooow)
6 years, 3 months ago (2014-09-17 16:12:08 UTC) #11
Message was sent while issue was closed.
On 2014/09/16 22:36:11, I haz the power (commit-bot) wrote:
> Patchset 6 (id:??) landed as
> https://crrev.com/ab2d46af89c657ab4fd01ab00de1ba2a6ad73f8d
> Cr-Commit-Position: refs/heads/master@{#295161}

This change broke Android MIPS builder:
http://build.chromium.org/p/chromium.fyi/builders/Android%20MIPS%20Builder%20...

Powered by Google App Engine
This is Rietveld 408576698