Chromium Code Reviews| Index: cloud_print/virtual_driver/posix/uninstall_cloud_print_driver_mac.mm |
| diff --git a/cloud_print/virtual_driver/posix/uninstall_cloud_print_driver_mac.mm b/cloud_print/virtual_driver/posix/uninstall_cloud_print_driver_mac.mm |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c400fff750348b0f8779351aafbd6cddc162da34 |
| --- /dev/null |
| +++ b/cloud_print/virtual_driver/posix/uninstall_cloud_print_driver_mac.mm |
| @@ -0,0 +1,20 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#import <ApplicationServices/ApplicationServices.h> |
| +#import <Foundation/NSAutoreleasePool.h> |
| + |
| +#include "cloud_print/virtual_driver/posix/installer_util_mac.h" |
| + |
| +const AEEventClass cloudPrintUninstallClass = 'GCPu'; |
|
Nico
2011/08/01 21:31:12
duplicated as well
|
| + |
| +// Uninstaller for Virtual Driver on Mac. Sends an Apple Event to |
| +// Chrome, launching it if necessary. The Apple Event unregisters |
| +// the virtual driver with the service process. |
| +int main() { |
| + NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; |
| + sendEvent(cloudPrintUninstallClass); |
| + [pool release]; |
| + return 0; |
| +} |