| OLD | NEW |
| 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 "base/mac/scoped_cftyperef.h" | 10 #include "base/mac/scoped_cftyperef.h" |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 NSString* host_enabled = [NSString stringWithFormat:@"%@/%@.me2me_enabled", | 141 NSString* host_enabled = [NSString stringWithFormat:@"%@/%@.me2me_enabled", |
| 142 kHelperToolsDir, kServiceName]; | 142 kHelperToolsDir, kServiceName]; |
| 143 [self sudoDelete:[host_enabled UTF8String] usingAuth:authRef]; | 143 [self sudoDelete:[host_enabled UTF8String] usingAuth:authRef]; |
| 144 | 144 |
| 145 [self shutdownService]; | 145 [self shutdownService]; |
| 146 | 146 |
| 147 NSString* plist = [NSString stringWithFormat:@"%@/%@.plist", | 147 NSString* plist = [NSString stringWithFormat:@"%@/%@.plist", |
| 148 kLaunchAgentsDir, kServiceName]; | 148 kLaunchAgentsDir, kServiceName]; |
| 149 [self sudoDelete:[plist UTF8String] usingAuth:authRef]; | 149 [self sudoDelete:[plist UTF8String] usingAuth:authRef]; |
| 150 | 150 |
| 151 NSString* host_binary = [NSString stringWithFormat:@"%@/%@.me2me_host", | 151 NSString* host_binary = [NSString stringWithFormat:@"%@/%@.me2me_host.app", |
| 152 kHelperToolsDir, kServiceName]; | 152 kHelperToolsDir, kServiceName]; |
| 153 [self sudoDelete:[host_binary UTF8String] usingAuth:authRef]; | 153 [self sudoDelete:[host_binary UTF8String] usingAuth:authRef]; |
| 154 | 154 |
| 155 NSString* host_script = [NSString stringWithFormat:@"%@/%@.me2me.sh", | 155 NSString* host_script = [NSString stringWithFormat:@"%@/%@.me2me.sh", |
| 156 kHelperToolsDir, kServiceName]; | 156 kHelperToolsDir, kServiceName]; |
| 157 [self sudoDelete:[host_script UTF8String] usingAuth:authRef]; | 157 [self sudoDelete:[host_script UTF8String] usingAuth:authRef]; |
| 158 | 158 |
| 159 NSString* auth = [NSString stringWithFormat:@"%@/%@.json", | 159 NSString* auth = [NSString stringWithFormat:@"%@/%@.json", |
| 160 kHelperToolsDir, kServiceName]; | 160 kHelperToolsDir, kServiceName]; |
| 161 [self sudoDelete:[auth UTF8String] usingAuth:authRef]; | 161 [self sudoDelete:[auth UTF8String] usingAuth:authRef]; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 [NSApp terminate:self]; | 222 [NSApp terminate:self]; |
| 223 } | 223 } |
| 224 | 224 |
| 225 @end | 225 @end |
| 226 | 226 |
| 227 int main(int argc, char* argv[]) | 227 int main(int argc, char* argv[]) |
| 228 { | 228 { |
| 229 return NSApplicationMain(argc, (const char**)argv); | 229 return NSApplicationMain(argc, (const char**)argv); |
| 230 } | 230 } |
| 231 | 231 |
| OLD | NEW |