Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Unified Diff: sandbox/mac/seatbelt.cc

Issue 2369553002: Suppress sandbox deprecation warnings by using the Seatbelt wrapper. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« sandbox/mac/seatbelt.h ('K') | « sandbox/mac/seatbelt.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/mac/seatbelt.cc
diff --git a/sandbox/mac/seatbelt.cc b/sandbox/mac/seatbelt.cc
index c2028d5bb33fc1b1ccaaf1c552b475dbc2cfe4ec..d03b6ee9e9a074060d1eb3e9c7e6bc0accff6b35 100644
--- a/sandbox/mac/seatbelt.cc
+++ b/sandbox/mac/seatbelt.cc
@@ -43,4 +43,44 @@ void Seatbelt::FreeError(char* errorbuf) {
#pragma clang diagnostic pop
}
+// static
+const char* Seatbelt::ProfileNoInternet() {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
+ return kSBXProfileNoInternet;
+#pragma clang diagnostic pop
+}
+
+// static
+const char* Seatbelt::ProfileNoNetwork() {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
+ return kSBXProfileNoNetwork;
+#pragma clang diagnostic pop
+}
+
+// static
+const char* Seatbelt::ProfileNoWrite() {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
+ return kSBXProfileNoWrite;
+#pragma clang diagnostic pop
+}
+
+// static
+const char* Seatbelt::ProfileNoWriteExceptTemporary() {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
+ return kSBXProfileNoWriteExceptTemporary;
+#pragma clang diagnostic pop
+}
+
+// static
+const char* Seatbelt::ProfilePureComputation() {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
+ return kSBXProfilePureComputation;
+#pragma clang diagnostic pop
+}
+
} // namespace sandbox
« sandbox/mac/seatbelt.h ('K') | « sandbox/mac/seatbelt.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698