| Index: sandbox/mac/seatbelt.cc
|
| diff --git a/sandbox/mac/seatbelt.cc b/sandbox/mac/seatbelt.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6627e2ba9896d10f4899666bb81580ee38d32120
|
| --- /dev/null
|
| +++ b/sandbox/mac/seatbelt.cc
|
| @@ -0,0 +1,29 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "sandbox/mac/seatbelt.h"
|
| +
|
| +#include <sandbox.h>
|
| +
|
| +namespace sandbox {
|
| +
|
| +// static
|
| +int Seatbelt::sandbox_init(const char* profile,
|
| + uint64_t flags,
|
| + char** errorbuf) {
|
| +#pragma clang diagnostic push
|
| +#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
| + return ::sandbox_init(profile, flags, errorbuf);
|
| +#pragma clang diagnostic pop
|
| +}
|
| +
|
| +// static
|
| +void Seatbelt::sandbox_free_error(char* errorbuf) {
|
| +#pragma clang diagnostic push
|
| +#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
| + return ::sandbox_free_error(errorbuf);
|
| +#pragma clang diagnostic pop
|
| +}
|
| +
|
| +} // namespace sandbox
|
|
|