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

Unified Diff: content/common/sandbox_mac.mm

Issue 1839243004: Suppress deprecation warnings for OS X sandbox functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « no previous file | ipc/ipc_send_fds_test.cc » ('j') | ipc/ipc_send_fds_test.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/sandbox_mac.mm
diff --git a/content/common/sandbox_mac.mm b/content/common/sandbox_mac.mm
index 75199b1a3d62491f1d4a70e1e545c1b38b820342..c422bf7f8f2a7874583eb944edbe54edcf04a854 100644
--- a/content/common/sandbox_mac.mm
+++ b/content/common/sandbox_mac.mm
@@ -155,7 +155,10 @@ bool SandboxCompiler::CompileAndApplyProfile(std::string* error) {
if (sandbox_init_with_parameters(profile_str_.c_str(), 0, params.data(),
&error_internal)) {
error->assign(error_internal);
Nico 2016/03/31 19:50:15 Can you please add a somewhat detailed comment her
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
sandbox_free_error(error_internal);
+#pragma clang diagnostic pop
return false;
}
return true;
« no previous file with comments | « no previous file | ipc/ipc_send_fds_test.cc » ('j') | ipc/ipc_send_fds_test.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698