Index: base/file_util_posix.cc |
diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc |
index f1113d5014d02cc994980543d3064ecee4b51b80..c9a0d9bb474c2d8e6f15321b67c72999f1153b66 100644 |
--- a/base/file_util_posix.cc |
+++ b/base/file_util_posix.cc |
@@ -38,6 +38,7 @@ |
#include "base/logging.h" |
#include "base/memory/scoped_ptr.h" |
#include "base/memory/singleton.h" |
+#include "base/path_service.h" |
#include "base/stl_util.h" |
#include "base/string_util.h" |
#include "base/stringprintf.h" |
@@ -920,7 +921,7 @@ bool GetTempDir(FilePath* path) { |
*path = FilePath(tmp); |
else |
#if defined(OS_ANDROID) |
- *path = FilePath("/data/local/tmp"); |
+ return PathService::Get(base::DIR_CACHE, path); |
#else |
*path = FilePath("/tmp"); |
#endif |