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

Unified Diff: remoting/host/installer/mac/uninstaller/remoting_uninstaller.mm

Issue 1778763002: Prepare remoting/ for compilation with OS X 10.7 deployment target. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp89_107_base4
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 | remoting/host/mac/me2me_preference_pane.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/installer/mac/uninstaller/remoting_uninstaller.mm
diff --git a/remoting/host/installer/mac/uninstaller/remoting_uninstaller.mm b/remoting/host/installer/mac/uninstaller/remoting_uninstaller.mm
index 7734d23d75edd215d06e4d1649e06fe771a7e123..119f1b3151a217acb869c1074226687bd265b8db 100644
--- a/remoting/host/installer/mac/uninstaller/remoting_uninstaller.mm
+++ b/remoting/host/installer/mac/uninstaller/remoting_uninstaller.mm
@@ -6,6 +6,7 @@
#import <Cocoa/Cocoa.h>
+#include "base/mac/authorization_util.h"
#include "base/mac/scoped_authorizationref.h"
#include "remoting/host/constants_mac.h"
@@ -86,11 +87,8 @@ const char kKeystonePID[] = "com.google.chrome_remote_desktop";
NSLog(@"Executing (as Admin): %s %@", cmd,
[arg_array componentsJoinedByString:@" "]);
FILE* pipe = nullptr;
- OSStatus status;
- status = AuthorizationExecuteWithPrivileges(authRef, cmd,
- kAuthorizationFlagDefaults,
- (char* const*)args,
- &pipe);
+ OSStatus status = base::mac::ExecuteWithPrivilegesAndGetPID(
+ authRef, cmd, kAuthorizationFlagDefaults, args, &pipe, nullptr);
if (status == errAuthorizationToolExecuteFailure) {
NSLog(@"Error errAuthorizationToolExecuteFailure");
« no previous file with comments | « no previous file | remoting/host/mac/me2me_preference_pane.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698