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

Side by Side Diff: remoting/host/installer/mac/uninstaller/remoting_uninstaller.mm

Issue 12213059: Direct host output to a specific log file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/host/installer/mac/uninstaller/remoting_uninstaller.h" 5 #include "remoting/host/installer/mac/uninstaller/remoting_uninstaller.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include "base/mac/scoped_authorizationref.h" 9 #include "base/mac/scoped_authorizationref.h"
10 #include "remoting/host/constants_mac.h" 10 #include "remoting/host/constants_mac.h"
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 // restart itself. 133 // restart itself.
134 [self sudoDelete:remoting::kHostEnabledPath usingAuth:authRef]; 134 [self sudoDelete:remoting::kHostEnabledPath usingAuth:authRef];
135 135
136 [self shutdownService]; 136 [self shutdownService];
137 137
138 [self sudoDelete:remoting::kServicePlistPath usingAuth:authRef]; 138 [self sudoDelete:remoting::kServicePlistPath usingAuth:authRef];
139 [self sudoDelete:remoting::kHostBinaryPath usingAuth:authRef]; 139 [self sudoDelete:remoting::kHostBinaryPath usingAuth:authRef];
140 [self sudoDelete:remoting::kHostHelperScriptPath usingAuth:authRef]; 140 [self sudoDelete:remoting::kHostHelperScriptPath usingAuth:authRef];
141 [self sudoDelete:remoting::kHostConfigFilePath usingAuth:authRef]; 141 [self sudoDelete:remoting::kHostConfigFilePath usingAuth:authRef];
142 [self sudoDelete:remoting::kPrefPaneFilePath usingAuth:authRef]; 142 [self sudoDelete:remoting::kPrefPaneFilePath usingAuth:authRef];
143 [self sudoDelete:remoting::kLogFilePath usingAuth:authRef];
144 [self sudoDelete:remoting::kLogFileConfigPath usingAuth:authRef];
143 [self sudoDelete:remoting::kBrandedUninstallerPath usingAuth:authRef]; 145 [self sudoDelete:remoting::kBrandedUninstallerPath usingAuth:authRef];
144 [self sudoDelete:remoting::kUnbrandedUninstallerPath usingAuth:authRef]; 146 [self sudoDelete:remoting::kUnbrandedUninstallerPath usingAuth:authRef];
145 147
146 [self keystoneUnregisterUsingAuth:authRef]; 148 [self keystoneUnregisterUsingAuth:authRef];
147 } 149 }
148 150
149 - (OSStatus)remotingUninstall { 151 - (OSStatus)remotingUninstall {
150 base::mac::ScopedAuthorizationRef authRef; 152 base::mac::ScopedAuthorizationRef authRef;
151 OSStatus status = AuthorizationCreate(NULL, kAuthorizationEmptyEnvironment, 153 OSStatus status = AuthorizationCreate(NULL, kAuthorizationEmptyEnvironment,
152 kAuthorizationFlagDefaults, &authRef); 154 kAuthorizationFlagDefaults, &authRef);
(...skipping 11 matching lines...) Expand all
164 status = AuthorizationCopyRights(authRef, &rights, NULL, flags, NULL); 166 status = AuthorizationCopyRights(authRef, &rights, NULL, flags, NULL);
165 if (status == errAuthorizationSuccess) { 167 if (status == errAuthorizationSuccess) {
166 RemotingUninstaller* uninstaller = 168 RemotingUninstaller* uninstaller =
167 [[[RemotingUninstaller alloc] init] autorelease]; 169 [[[RemotingUninstaller alloc] init] autorelease];
168 [uninstaller remotingUninstallUsingAuth:authRef]; 170 [uninstaller remotingUninstallUsingAuth:authRef];
169 } 171 }
170 return status; 172 return status;
171 } 173 }
172 174
173 @end 175 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698