| OLD | NEW |
| (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 |
| OLD | NEW |