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

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

Issue 2161013003: Changing the default path for RemoteSecurityKeyIpcServer test channels (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rename
Patch Set: Removing a file that was accidentally included. 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
« base/environment.h ('K') | « base/environment.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
index e9aeb8685750951c6d5d1ea5598e9240d23c27da..d335174092d5a5c0971f6ea8787e63aa033d3cbb 100644
--- a/remoting/host/security_key/security_key_ipc_constants.cc
+++ b/remoting/host/security_key/security_key_ipc_constants.cc
@@ -33,10 +33,10 @@ void SetSecurityKeyIpcChannelNameForTest(const std::string& channel_name) {
std::string GetChannelNamePathPrefixForTest() {
std::string path_prefix;
-#if defined(OS_LINUX)
- path_prefix = "/dev/socket/";
+#if defined(OS_POSIX)
+ path_prefix = "/tmp/";
std::unique_ptr<base::Environment> env(base::Environment::Create());
- if (env->GetVar(base::env_vars::kHome, &path_prefix))
+ if (env->GetVar(base::env_vars::kTempDir, &path_prefix))
Lei Zhang 2016/07/19 22:07:30 Can you just call base::GetTempDir() instead? If
Sergey Ulanov 2016/07/19 22:34:57 Looks like we have base::GetTempDir() in base/file
joedow 2016/07/19 23:04:12 Done.
joedow 2016/07/19 23:04:12 Done.
path_prefix += "/";
#endif
return path_prefix;
« base/environment.h ('K') | « base/environment.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698