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

Unified Diff: base/file_util_posix.cc

Issue 8382001: OpenBSD patches for base and build, part 2 (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years, 2 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: base/file_util_posix.cc
diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc
index bb9977ed87f9d13c4a7af482b3bd7fdbad9df592..8f7c88d56345ebaa3fa30a8cc85ede75ce938ef1 100644
--- a/base/file_util_posix.cc
+++ b/base/file_util_posix.cc
@@ -912,7 +912,11 @@ bool GetTempDir(FilePath* path) {
#if !defined(OS_ANDROID)
bool GetShmemTempDir(FilePath* path) {
+#if defined(OS_LINUX)
*path = FilePath("/dev/shm");
+#else
+ *path = FilePath("/tmp");
Mark Mentovai 2011/10/24 13:43:15 return GetTempDir(path) instead?
Robert Nagy 2011/10/24 16:26:56 Done.
+#endif
return true;
}
#endif

Powered by Google App Engine
This is Rietveld 408576698