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

Side by Side Diff: sandbox/mac/seatbelt.cc

Issue 1855303003: Wrap deprecated sandbox functions in C++ class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« sandbox/mac/seatbelt.h ('K') | « sandbox/mac/seatbelt.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "sandbox/mac/seatbelt.h"
6
7 #include <sandbox.h>
8
9 namespace sandbox {
10
11 // static
12 int Seatbelt::sandbox_init(const char* profile,
13 uint64_t flags,
14 char** errorbuf) {
15 #pragma clang diagnostic push
16 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
17 return ::sandbox_init(profile, flags, errorbuf);
18 #pragma clang diagnostic pop
19 }
20
21 // static
22 void Seatbelt::sandbox_free_error(char* errorbuf) {
23 #pragma clang diagnostic push
24 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
25 return ::sandbox_free_error(errorbuf);
26 #pragma clang diagnostic pop
27 }
28
29 } // namespace sandbox
OLDNEW
« sandbox/mac/seatbelt.h ('K') | « sandbox/mac/seatbelt.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698