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 <stdlib.h> | 13 #include <stdlib.h> |
14 #include <unistd.h> | 14 #include <unistd.h> |
15 | 15 |
16 #include <fstream> | 16 #include <fstream> |
17 | 17 |
18 #include "base/eintr_wrapper.h" | |
19 #include "base/mac/scoped_launch_data.h" | 18 #include "base/mac/scoped_launch_data.h" |
20 #include "base/memory/scoped_ptr.h" | 19 #include "base/memory/scoped_ptr.h" |
| 20 #include "base/posix/eintr_wrapper.h" |
21 #include "remoting/host/constants_mac.h" | 21 #include "remoting/host/constants_mac.h" |
22 #include "remoting/host/host_config.h" | 22 #include "remoting/host/host_config.h" |
23 #import "remoting/host/mac/me2me_preference_pane_confirm_pin.h" | 23 #import "remoting/host/mac/me2me_preference_pane_confirm_pin.h" |
24 #import "remoting/host/mac/me2me_preference_pane_disable.h" | 24 #import "remoting/host/mac/me2me_preference_pane_disable.h" |
25 #include "third_party/jsoncpp/source/include/json/reader.h" | 25 #include "third_party/jsoncpp/source/include/json/reader.h" |
26 #include "third_party/jsoncpp/source/include/json/writer.h" | 26 #include "third_party/jsoncpp/source/include/json/writer.h" |
27 #include "third_party/modp_b64/modp_b64.h" | 27 #include "third_party/modp_b64/modp_b64.h" |
28 | 28 |
29 namespace { | 29 namespace { |
30 | 30 |
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 NSArray* arguments = [NSArray arrayWithObjects:@"--relaunch-prefpane", nil]; | 746 NSArray* arguments = [NSArray arrayWithObjects:@"--relaunch-prefpane", nil]; |
747 [task setLaunchPath:command]; | 747 [task setLaunchPath:command]; |
748 [task setArguments:arguments]; | 748 [task setArguments:arguments]; |
749 [task setStandardInput:[NSPipe pipe]]; | 749 [task setStandardInput:[NSPipe pipe]]; |
750 [task launch]; | 750 [task launch]; |
751 [task release]; | 751 [task release]; |
752 [NSApp terminate:nil]; | 752 [NSApp terminate:nil]; |
753 } | 753 } |
754 | 754 |
755 @end | 755 @end |
OLD | NEW |