| 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;
|
| }
|
|
|