Index: base/file_util_posix.cc |
=================================================================== |
--- base/file_util_posix.cc (revision 25936) |
+++ base/file_util_posix.cc (working copy) |
@@ -426,11 +426,10 @@ |
return fdopen(fd, "a+"); |
} |
-// TODO(port): implement me. |
-bool CreateTemporaryFileInDir(const FilePath& dir, |
- FilePath* temp_file) { |
- NOTREACHED(); |
- return false; |
+ |
+bool CreateTemporaryFileInDir(const FilePath& dir, FilePath* temp_file) { |
+ int fd = CreateAndOpenFdForTemporaryFile(dir, temp_file); |
+ return ((fd >= 0) && !close(fd)); |
} |
bool CreateNewTempDirectory(const FilePath::StringType& prefix, |