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

Issue 1855303003: Wrap deprecated sandbox functions in C++ class. (Closed)

Created:
4 years, 8 months ago by Greg K
Modified:
4 years, 8 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, rickyz+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Wrap deprecated sandbox functions in C++ class. OS X deprecated sandbox functions and did not replace them with anything suitable for Chromium. This wraps them in a C++ class, so that the deprecation supression directives are not littered through the source code. BUG=547071 Committed: https://crrev.com/dc059fee81609043169f2a21593ef209a78bdecf Cr-Commit-Position: refs/heads/master@{#386711}

Patch Set 1 #

Patch Set 2 : Add GN build #

Patch Set 3 : SANDBOX_EXPORT the class #

Patch Set 4 : #

Total comments: 14

Patch Set 5 : #

Total comments: 9

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -21 lines) Patch
M content/common/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/common/sandbox_mac.mm View 1 2 3 4 4 chunks +4 lines, -14 lines 0 comments Download
M content/content_common.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M ipc/BUILD.gn View 1 1 chunk +4 lines, -0 lines 0 comments Download
M ipc/DEPS View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ipc/ipc.gyp View 1 chunk +5 lines, -0 lines 0 comments Download
M ipc/ipc_send_fds_test.cc View 1 2 3 4 3 chunks +8 lines, -7 lines 0 comments Download
M sandbox/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M sandbox/mac/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download
M sandbox/mac/sandbox_mac.gypi View 1 2 3 4 5 6 7 1 chunk +20 lines, -0 lines 0 comments Download
A sandbox/mac/seatbelt.h View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
A sandbox/mac/seatbelt.cc View 1 2 3 4 5 1 chunk +46 lines, -0 lines 0 comments Download
A sandbox/mac/seatbelt_export.h View 1 2 3 4 5 6 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (8 generated)
Greg K
It looks like the one failing trybot is broken, so please review, thanks!
4 years, 8 months ago (2016-04-05 14:10:05 UTC) #2
Robert Sesek
https://codereview.chromium.org/1855303003/diff/60001/content/common/sandbox_mac.mm File content/common/sandbox_mac.mm (right): https://codereview.chromium.org/1855303003/diff/60001/content/common/sandbox_mac.mm#newcode13 content/common/sandbox_mac.mm:13: #include <sandbox.h> Remove now? https://codereview.chromium.org/1855303003/diff/60001/content/common/sandbox_mac.mm#newcode51 content/common/sandbox_mac.mm:51: int sandbox_init_with_parameters(const char* ...
4 years, 8 months ago (2016-04-05 14:13:25 UTC) #3
Greg K
https://codereview.chromium.org/1855303003/diff/60001/content/common/sandbox_mac.mm File content/common/sandbox_mac.mm (right): https://codereview.chromium.org/1855303003/diff/60001/content/common/sandbox_mac.mm#newcode13 content/common/sandbox_mac.mm:13: #include <sandbox.h> On 2016/04/05 14:13:25, Robert Sesek wrote: > ...
4 years, 8 months ago (2016-04-05 18:24:44 UTC) #4
Robert Sesek
LGTM
4 years, 8 months ago (2016-04-05 18:26:05 UTC) #5
Greg K
avi@chromium.org: Please review changes in content/common/BUILD.gn tsepez@chromium.org: Please review changes in: ipc/ Thanks, Greg
4 years, 8 months ago (2016-04-05 18:27:51 UTC) #7
Greg K
jln@chromium.org: Please review changes in sandbox/BUILD.gn Thanks, Greg
4 years, 8 months ago (2016-04-05 18:28:31 UTC) #9
Nico
thanks! https://codereview.chromium.org/1855303003/diff/80001/sandbox/mac/BUILD.gn File sandbox/mac/BUILD.gn (right): https://codereview.chromium.org/1855303003/diff/80001/sandbox/mac/BUILD.gn#newcode39 sandbox/mac/BUILD.gn:39: "seatbelt.h", (consider adding seatbelt_exports.h here too) https://codereview.chromium.org/1855303003/diff/80001/sandbox/mac/sandbox_mac.gypi File ...
4 years, 8 months ago (2016-04-05 18:37:18 UTC) #10
Tom Sepez
IPC LGTM
4 years, 8 months ago (2016-04-05 18:39:11 UTC) #11
jln (very slow on Chromium)
sandbox/BUILD.gn owner lgtm rubberstamp
4 years, 8 months ago (2016-04-05 18:40:55 UTC) #12
Greg K
https://codereview.chromium.org/1855303003/diff/80001/sandbox/mac/seatbelt.cc File sandbox/mac/seatbelt.cc (right): https://codereview.chromium.org/1855303003/diff/80001/sandbox/mac/seatbelt.cc#newcode20 sandbox/mac/seatbelt.cc:20: #pragma clang diagnostic push On 2016/04/05 18:37:18, Nico (hiding ...
4 years, 8 months ago (2016-04-05 18:44:54 UTC) #13
Nico
https://codereview.chromium.org/1855303003/diff/80001/sandbox/mac/seatbelt.h File sandbox/mac/seatbelt.h (right): https://codereview.chromium.org/1855303003/diff/80001/sandbox/mac/seatbelt.h#newcode11 sandbox/mac/seatbelt.h:11: #include "sandbox/sandbox_export.h" On 2016/04/05 18:44:54, Greg Kerr wrote: > ...
4 years, 8 months ago (2016-04-05 18:46:36 UTC) #14
Greg K
On 2016/04/05 18:46:36, Nico (hiding until Fri) wrote: > https://codereview.chromium.org/1855303003/diff/80001/sandbox/mac/seatbelt.h > File sandbox/mac/seatbelt.h (right): > ...
4 years, 8 months ago (2016-04-06 15:43:58 UTC) #15
Avi (use Gerrit)
lgtm
4 years, 8 months ago (2016-04-06 16:46:35 UTC) #16
Greg K
On 2016/04/06 16:46:35, Avi wrote: > lgtm Nico, Please take a look. Thanks, Greg
4 years, 8 months ago (2016-04-11 20:11:07 UTC) #17
Nico
lgtm
4 years, 8 months ago (2016-04-11 20:29:04 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1855303003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1855303003/140001
4 years, 8 months ago (2016-04-11 20:32:26 UTC) #21
commit-bot: I haz the power
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/209219)
4 years, 8 months ago (2016-04-11 23:57:02 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1855303003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1855303003/140001
4 years, 8 months ago (2016-04-12 16:15:12 UTC) #25
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 8 months ago (2016-04-12 16:39:16 UTC) #26
commit-bot: I haz the power
4 years, 8 months ago (2016-04-12 16:40:27 UTC) #28
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/dc059fee81609043169f2a21593ef209a78bdecf
Cr-Commit-Position: refs/heads/master@{#386711}

Powered by Google App Engine
This is Rietveld 408576698