|
|
DescriptionSuppress deprecation warnings for OS X sandbox functions.
OS X deprecated sandbox_init and sandbox_free_error, but never
provided suitable replacements. This supresses the warning.
BUG=547071
Committed: https://crrev.com/4a7c8037156d284abd840ce093c001655ec4f742
Cr-Commit-Position: refs/heads/master@{#384310}
Patch Set 1 #
Total comments: 2
Messages
Total messages: 17 (5 generated)
kerrnel@chromium.org changed reviewers: + rsesek@chromium.org
Please review, thanks.
I think there's one more instance of this in crdmg.cc. One thing to consider would be to add //sandbox/mac/seatbelt.h that wraps these functions in a C++ class to hide the #pragma's.
On 2016/03/30 20:38:52, Robert Sesek wrote: > I think there's one more instance of this in crdmg.cc. > > One thing to consider would be to add //sandbox/mac/seatbelt.h that wraps these > functions in a C++ class to hide the #pragma's. Yes, the instance in crdmg.cc is already wrapped in pragma's. Should we replace them all with C++ versions? In theory we could also use sandbox_init_with_parameters and pass an empty parameters, although that is a bit more hacky.
On 2016/03/30 20:48:33, Greg Kerr wrote: > On 2016/03/30 20:38:52, Robert Sesek wrote: > > I think there's one more instance of this in crdmg.cc. > > > > One thing to consider would be to add //sandbox/mac/seatbelt.h that wraps > these > > functions in a C++ class to hide the #pragma's. > > Yes, the instance in crdmg.cc is already wrapped in pragma's. Should we replace > them all with C++ versions? Ah, how thoughtful of me! > In theory we could also use > sandbox_init_with_parameters and pass an empty parameters, although that is a > bit more hacky. That would require everyone to forward-declare sandbox_init_with_parameters, and it doesn't solve the sandbox_error_free issue. This LGTM; creating something in //sandbox/mac is optional.
kerrnel@chromium.org changed reviewers: + tsepez@chromium.org
tsepez@chromium.org: Please provide an OWNERS review for the ipc file. Thanks, kerrnel
STAMP LGTM.
The CQ bit was checked by kerrnel@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1839243004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1839243004/1
Message was sent while issue was closed.
Committed patchset #1 (id:1)
Message was sent while issue was closed.
Description was changed from ========== Suppress deprecation warnings for OS X sandbox functions. OS X deprecated sandbox_init and sandbox_free_error, but never provided suitable replacements. This supresses the warning. BUG=547071 ========== to ========== Suppress deprecation warnings for OS X sandbox functions. OS X deprecated sandbox_init and sandbox_free_error, but never provided suitable replacements. This supresses the warning. BUG=547071 Committed: https://crrev.com/4a7c8037156d284abd840ce093c001655ec4f742 Cr-Commit-Position: refs/heads/master@{#384310} ==========
Message was sent while issue was closed.
Patchset 1 (id:??) landed as https://crrev.com/4a7c8037156d284abd840ce093c001655ec4f742 Cr-Commit-Position: refs/heads/master@{#384310}
Message was sent while issue was closed.
thakis@chromium.org changed reviewers: + thakis@chromium.org
Message was sent while issue was closed.
https://codereview.chromium.org/1839243004/diff/1/content/common/sandbox_mac.mm File content/common/sandbox_mac.mm (right): https://codereview.chromium.org/1839243004/diff/1/content/common/sandbox_mac.... content/common/sandbox_mac.mm:157: error->assign(error_internal); Can you please add a somewhat detailed comment here why this suppression is justified? I think this CL is ok, but I don't want unannotated instances of this suppression in the code base. https://codereview.chromium.org/1839243004/diff/1/ipc/ipc_send_fds_test.cc File ipc/ipc_send_fds_test.cc (right): https://codereview.chromium.org/1839243004/diff/1/ipc/ipc_send_fds_test.cc#ne... ipc/ipc_send_fds_test.cc:197: #pragma clang diagnostic ignored "-Wdeprecated-declarations" Here too
Message was sent while issue was closed.
On 2016/03/31 19:50:15, Nico wrote: > https://codereview.chromium.org/1839243004/diff/1/content/common/sandbox_mac.mm > File content/common/sandbox_mac.mm (right): > > https://codereview.chromium.org/1839243004/diff/1/content/common/sandbox_mac.... > content/common/sandbox_mac.mm:157: error->assign(error_internal); > Can you please add a somewhat detailed comment here why this suppression is > justified? I think this CL is ok, but I don't want unannotated instances of this > suppression in the code base. > > https://codereview.chromium.org/1839243004/diff/1/ipc/ipc_send_fds_test.cc > File ipc/ipc_send_fds_test.cc (right): > > https://codereview.chromium.org/1839243004/diff/1/ipc/ipc_send_fds_test.cc#ne... > ipc/ipc_send_fds_test.cc:197: #pragma clang diagnostic ignored > "-Wdeprecated-declarations" > Here too Sure, if I am going to comment everything, why don't I just write a C++ wrapper function so the comment is only in one place? - Greg
Message was sent while issue was closed.
Works for me :-) On Mar 31, 2016 4:02 PM, <kerrnel@chromium.org> wrote: > On 2016/03/31 19:50:15, Nico wrote: > > > > https://codereview.chromium.org/1839243004/diff/1/content/common/sandbox_mac.mm > > File content/common/sandbox_mac.mm (right): > > > > > > https://codereview.chromium.org/1839243004/diff/1/content/common/sandbox_mac.... > > content/common/sandbox_mac.mm:157: error->assign(error_internal); > > Can you please add a somewhat detailed comment here why this suppression > is > > justified? I think this CL is ok, but I don't want unannotated instances > of > this > > suppression in the code base. > > > > > https://codereview.chromium.org/1839243004/diff/1/ipc/ipc_send_fds_test.cc > > File ipc/ipc_send_fds_test.cc (right): > > > > > > https://codereview.chromium.org/1839243004/diff/1/ipc/ipc_send_fds_test.cc#ne... > > ipc/ipc_send_fds_test.cc:197: #pragma clang diagnostic ignored > > "-Wdeprecated-declarations" > > Here too > > Sure, if I am going to comment everything, why don't I just write a C++ > wrapper > function so the comment is only in one place? > > - Greg > > https://codereview.chromium.org/1839243004/ > -- You received this message because you are subscribed to the Google Groups "Chromium-reviews" group. To unsubscribe from this group and stop receiving emails from it, send an email to chromium-reviews+unsubscribe@chromium.org. |