Index: sandbox/mac/seatbelt.cc |
diff --git a/sandbox/mac/seatbelt.cc b/sandbox/mac/seatbelt.cc |
index c2028d5bb33fc1b1ccaaf1c552b475dbc2cfe4ec..752c2b334345402a29a79b7b20aae6bc3eecce8e 100644 |
--- a/sandbox/mac/seatbelt.cc |
+++ b/sandbox/mac/seatbelt.cc |
@@ -15,6 +15,18 @@ int sandbox_init_with_parameters(const char* profile, |
namespace sandbox { |
+// Initialize the static member variables. |
+#pragma clang diagnostic push |
+#pragma clang diagnostic ignored "-Wdeprecated-declarations" |
+const char* Seatbelt::kProfileNoInternet = kSBXProfileNoInternet; |
+const char* Seatbelt::kProfileNoNetwork = kSBXProfileNoNetwork; |
+const char* Seatbelt::kProfileNoWrite = kSBXProfileNoWrite; |
+const char* Seatbelt::kProfileNoWriteExceptTemporary = |
+ kSBXProfileNoWriteExceptTemporary; |
Robert Sesek
2016/09/23 20:47:55
Formatting here is a bit odd. Did clang-format do
Greg K
2016/09/23 21:14:05
Done.
|
+const char* Seatbelt::kProfilePureComputation = |
+ kSBXProfilePureComputation; |
+#pragma clang diagnostic pop |
+ |
// static |
int Seatbelt::Init(const char* profile, uint64_t flags, char** errorbuf) { |
// OS X deprecated these functions, but did not provide a suitable replacement, |