Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: remoting/host/security_key/security_key_ipc_constants.cc

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: l10n again Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « remoting/host/audio_capturer_linux.cc ('k') | remoting/host/win/chromoting_module.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « remoting/host/audio_capturer_linux.cc ('k') | remoting/host/win/chromoting_module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698