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 #import "remoting/host/mac/me2me_preference_pane.h" | 5 #import "remoting/host/mac/me2me_preference_pane.h" |
6 | 6 |
7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
8 #include <CommonCrypto/CommonHMAC.h> | 8 #include <CommonCrypto/CommonHMAC.h> |
9 #include <errno.h> | 9 #include <errno.h> |
10 #include <launch.h> | 10 #include <launch.h> |
11 #import <PreferencePanes/PreferencePanes.h> | 11 #import <PreferencePanes/PreferencePanes.h> |
12 #import <SecurityInterface/SFAuthorizationView.h> | 12 #import <SecurityInterface/SFAuthorizationView.h> |
| 13 #include <stddef.h> |
13 #include <stdlib.h> | 14 #include <stdlib.h> |
14 #include <unistd.h> | 15 #include <unistd.h> |
15 | 16 |
16 #include <fstream> | 17 #include <fstream> |
17 | 18 |
18 #include "base/mac/scoped_launch_data.h" | 19 #include "base/mac/scoped_launch_data.h" |
19 #include "base/memory/scoped_ptr.h" | 20 #include "base/memory/scoped_ptr.h" |
20 #include "base/posix/eintr_wrapper.h" | 21 #include "base/posix/eintr_wrapper.h" |
21 #include "remoting/host/constants_mac.h" | 22 #include "remoting/host/constants_mac.h" |
22 #include "remoting/host/host_config.h" | 23 #include "remoting/host/host_config.h" |
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
753 NSArray* arguments = [NSArray arrayWithObjects:@"--relaunch-prefpane", nil]; | 754 NSArray* arguments = [NSArray arrayWithObjects:@"--relaunch-prefpane", nil]; |
754 [task setLaunchPath:command]; | 755 [task setLaunchPath:command]; |
755 [task setArguments:arguments]; | 756 [task setArguments:arguments]; |
756 [task setStandardInput:[NSPipe pipe]]; | 757 [task setStandardInput:[NSPipe pipe]]; |
757 [task launch]; | 758 [task launch]; |
758 [task release]; | 759 [task release]; |
759 [NSApp terminate:nil]; | 760 [NSApp terminate:nil]; |
760 } | 761 } |
761 | 762 |
762 @end | 763 @end |
OLD | NEW |