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

Unified Diff: base/mac/authorization_util.mm

Issue 1773303002: Prepare base/ for compilation with OS X 10.7 deployment target. (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 | base/mac/sdk_forward_declarations.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/mac/authorization_util.mm
diff --git a/base/mac/authorization_util.mm b/base/mac/authorization_util.mm
index d09b95d800548b4849478d46a0b865c75b600ccf..a459bbf8fe4e05e4ef2de2cb748dc965b9726980 100644
--- a/base/mac/authorization_util.mm
+++ b/base/mac/authorization_util.mm
@@ -108,6 +108,9 @@ OSStatus ExecuteWithPrivilegesAndGetPID(AuthorizationRef authorization,
pipe_pointer = &local_pipe;
}
+// Deprecated in OS X 10.7. https://crbug.com/592663.
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
// AuthorizationExecuteWithPrivileges wants |char* const*| for |arguments|,
// but it doesn't actually modify the arguments, and that type is kind of
// silly and callers probably aren't dealing with that. Put the cast here
@@ -117,6 +120,7 @@ OSStatus ExecuteWithPrivilegesAndGetPID(AuthorizationRef authorization,
options,
(char* const*)arguments,
pipe_pointer);
+#pragma clang diagnostic pop
if (status != errAuthorizationSuccess) {
return status;
}
« no previous file with comments | « no previous file | base/mac/sdk_forward_declarations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698