Suppress sandbox deprecation warnings by using the Seatbelt wrapper.
OS X deprecated all of the Sandbox API and never provided a replacement.
To hide the deprecation suppressions in the code, we use a wrapper
class.
BUG=chromium:622489
NOPRESUBMIT=true
Review-Url: https://codereview.chromium.org/2369553002
Cr-Commit-Position: refs/heads/master@{#420799}
CrOS-Libchrome-Original-Commit: df7ac746097f96e4b6150c017f1e0f7f722926ca
diff --git a/ipc/ipc_send_fds_test.cc b/ipc/ipc_send_fds_test.cc
index 033ae39..94a5a71 100644
--- a/ipc/ipc_send_fds_test.cc
+++ b/ipc/ipc_send_fds_test.cc
@@ -196,8 +196,8 @@
// Enable the sandbox.
char* error_buff = NULL;
- int error = sandbox::Seatbelt::Init(kSBXProfilePureComputation, SANDBOX_NAMED,
- &error_buff);
+ int error = sandbox::Seatbelt::Init(
+ sandbox::Seatbelt::kProfilePureComputation, SANDBOX_NAMED, &error_buff);
bool success = (error == 0 && error_buff == NULL);
if (!success)
return -1;