| Index: base/file_util.cc
|
| diff --git a/base/file_util.cc b/base/file_util.cc
|
| index f7a041190581559c082f21d033faab53d4aa8983..8eec3ac2bf1863f28a271e06fd09447c1ac9443a 100644
|
| --- a/base/file_util.cc
|
| +++ b/base/file_util.cc
|
| @@ -188,6 +188,14 @@ bool ReadFileToString(const FilePath& path, std::string* contents) {
|
| return true;
|
| }
|
|
|
| +FILE* CreateAndOpenTemporaryFile(FilePath* path) {
|
| + FilePath directory;
|
| + if (!GetTempDir(&directory))
|
| + return false;
|
| +
|
| + return CreateAndOpenTemporaryFileInDir(directory, path);
|
| +}
|
| +
|
| bool GetFileSize(const FilePath& file_path, int64* file_size) {
|
| FileInfo info;
|
| if (!GetFileInfo(file_path, &info))
|
|
|