Chromium Code Reviews| Index: base/file_util_posix.cc |
| diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc |
| index bb9977ed87f9d13c4a7af482b3bd7fdbad9df592..eff1cc5f5bca42daf873587f7d1ea5302ac4f4e9 100644 |
| --- a/base/file_util_posix.cc |
| +++ b/base/file_util_posix.cc |
| @@ -912,7 +912,14 @@ bool GetTempDir(FilePath* path) { |
| #if !defined(OS_ANDROID) |
| bool GetShmemTempDir(FilePath* path) { |
| +#if defined(OS_LINUX) |
| *path = FilePath("/dev/shm"); |
| +#else |
| + if (!file_util::GetTempDir(path)) { |
| + // Set it to /tmp if all else fails. |
|
Mark Mentovai
2011/10/24 17:06:12
I would have just made this do |return GetTempDir(
Robert Nagy
2011/10/24 18:00:57
Done.
|
| + *path = FilePath("/tmp"); |
| + } |
| +#endif |
| return true; |
| } |
| #endif |