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

Unified Diff: remoting/host/security_key/security_key_ipc_constants.cc

Issue 2170563002: Revert of Renaming Gnubby and RemoteSecurityKey files/classes/members (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: remoting/host/security_key/security_key_ipc_constants.cc
diff --git a/remoting/host/security_key/security_key_ipc_constants.cc b/remoting/host/security_key/security_key_ipc_constants.cc
deleted file mode 100644
index e9aeb8685750951c6d5d1ea5598e9240d23c27da..0000000000000000000000000000000000000000
--- a/remoting/host/security_key/security_key_ipc_constants.cc
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "remoting/host/security_key/security_key_ipc_constants.h"
-
-#include "base/environment.h"
-#include "base/lazy_instance.h"
-
-namespace {
-base::LazyInstance<std::string> g_security_key_ipc_channel_name =
- LAZY_INSTANCE_INITIALIZER;
-
-const char kSecurityKeyIpcChannelName[] = "security_key_ipc_channel";
-
-} // namespace
-
-namespace remoting {
-
-extern const char kSecurityKeyConnectionError[] = "ssh_connection_error";
-
-const std::string& GetSecurityKeyIpcChannelName() {
- if (g_security_key_ipc_channel_name.Get().empty()) {
- g_security_key_ipc_channel_name.Get() = kSecurityKeyIpcChannelName;
- }
-
- return g_security_key_ipc_channel_name.Get();
-}
-
-void SetSecurityKeyIpcChannelNameForTest(const std::string& channel_name) {
- g_security_key_ipc_channel_name.Get() = channel_name;
-}
-
-std::string GetChannelNamePathPrefixForTest() {
- std::string path_prefix;
-#if defined(OS_LINUX)
- path_prefix = "/dev/socket/";
- std::unique_ptr<base::Environment> env(base::Environment::Create());
- if (env->GetVar(base::env_vars::kHome, &path_prefix))
- path_prefix += "/";
-#endif
- return path_prefix;
-}
-
-} // namespace remoting
« no previous file with comments | « remoting/host/security_key/security_key_ipc_constants.h ('k') | remoting/host/security_key/security_key_ipc_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698