| Index: content/common/sandbox_mac.mm
|
| diff --git a/content/common/sandbox_mac.mm b/content/common/sandbox_mac.mm
|
| index c422bf7f8f2a7874583eb944edbe54edcf04a854..9a351c6ad087ce4bdfc8a92786f7973b8af70580 100644
|
| --- a/content/common/sandbox_mac.mm
|
| +++ b/content/common/sandbox_mac.mm
|
| @@ -39,6 +39,7 @@ extern "C" {
|
| #include "content/grit/content_resources.h"
|
| #include "content/public/common/content_client.h"
|
| #include "content/public/common/content_switches.h"
|
| +#include "sandbox/mac/seatbelt.h"
|
| #include "third_party/icu/source/common/unicode/uchar.h"
|
| #include "ui/base/layout.h"
|
| #include "ui/gl/gl_surface.h"
|
| @@ -155,10 +156,7 @@ bool SandboxCompiler::CompileAndApplyProfile(std::string* error) {
|
| if (sandbox_init_with_parameters(profile_str_.c_str(), 0, params.data(),
|
| &error_internal)) {
|
| error->assign(error_internal);
|
| -#pragma clang diagnostic push
|
| -#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
| - sandbox_free_error(error_internal);
|
| -#pragma clang diagnostic pop
|
| + sandbox::Seatbelt::sandbox_free_error(error_internal);
|
| return false;
|
| }
|
| return true;
|
|
|