OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/win/com_security.h" | 5 #include "remoting/host/win/com_security.h" |
6 | 6 |
7 #include <objidl.h> | 7 #include <objidl.h> |
8 | 8 |
9 #include "base/basictypes.h" | |
10 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
11 #include "base/logging.h" | 10 #include "base/logging.h" |
12 #include "base/win/windows_version.h" | 11 #include "base/win/windows_version.h" |
13 #include "remoting/host/win/security_descriptor.h" | 12 #include "remoting/host/win/security_descriptor.h" |
14 | 13 |
15 namespace remoting { | 14 namespace remoting { |
16 | 15 |
17 bool InitializeComSecurity(const std::string& security_descriptor, | 16 bool InitializeComSecurity(const std::string& security_descriptor, |
18 const std::string& mandatory_label, | 17 const std::string& mandatory_label, |
19 bool activate_as_activator) { | 18 bool activate_as_activator) { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 if (FAILED(result)) { | 57 if (FAILED(result)) { |
59 LOG(ERROR) << "CoInitializeSecurity() failed, result=0x" | 58 LOG(ERROR) << "CoInitializeSecurity() failed, result=0x" |
60 << std::hex << result << std::dec << "."; | 59 << std::hex << result << std::dec << "."; |
61 return false; | 60 return false; |
62 } | 61 } |
63 | 62 |
64 return true; | 63 return true; |
65 } | 64 } |
66 | 65 |
67 } // namespace remoting | 66 } // namespace remoting |
OLD | NEW |