| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/security_key/security_key_ipc_constants.h" | 5 #include "remoting/host/security_key/security_key_ipc_constants.h" |
| 6 | 6 |
| 7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #if defined(OS_POSIX) | 10 #if defined(OS_POSIX) |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #endif // defined(OS_POSIX) | 14 #endif // defined(OS_POSIX) |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 base::LazyInstance<mojo::edk::NamedPlatformHandle> | 17 base::LazyInstance<mojo::edk::NamedPlatformHandle>::DestructorAtExit |
| 18 g_security_key_ipc_channel_name = LAZY_INSTANCE_INITIALIZER; | 18 g_security_key_ipc_channel_name = LAZY_INSTANCE_INITIALIZER; |
| 19 | 19 |
| 20 constexpr char kSecurityKeyIpcChannelName[] = "security_key_ipc_channel"; | 20 constexpr char kSecurityKeyIpcChannelName[] = "security_key_ipc_channel"; |
| 21 | 21 |
| 22 } // namespace | 22 } // namespace |
| 23 | 23 |
| 24 namespace remoting { | 24 namespace remoting { |
| 25 | 25 |
| 26 const char kSecurityKeyConnectionError[] = "ssh_connection_error"; | 26 const char kSecurityKeyConnectionError[] = "ssh_connection_error"; |
| 27 | 27 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 46 if (base::GetTempDir(&base_file_path)) { | 46 if (base::GetTempDir(&base_file_path)) { |
| 47 base_path = base_file_path.AsEndingWithSeparator().value(); | 47 base_path = base_file_path.AsEndingWithSeparator().value(); |
| 48 } else { | 48 } else { |
| 49 LOG(ERROR) << "Failed to retrieve temporary directory."; | 49 LOG(ERROR) << "Failed to retrieve temporary directory."; |
| 50 } | 50 } |
| 51 #endif // defined(OS_POSIX) | 51 #endif // defined(OS_POSIX) |
| 52 return base_path; | 52 return base_path; |
| 53 } | 53 } |
| 54 | 54 |
| 55 } // namespace remoting | 55 } // namespace remoting |
| OLD | NEW |