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

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

Issue 10310089: Make me2me_host a Mac bundle (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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
« no previous file with comments | « remoting/host/installer/mac/do_signing.sh ('k') | remoting/host/remoting_me2me_host-Info.plist » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/mac/scoped_cftyperef.h" 10 #include "base/mac/scoped_cftyperef.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « remoting/host/installer/mac/do_signing.sh ('k') | remoting/host/remoting_me2me_host-Info.plist » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698