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}
diff --git a/ipc/ipc_send_fds_test.cc b/ipc/ipc_send_fds_test.cc
index 033ae397..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;