Chromium Code Reviews| Index: base/file_util.h |
| diff --git a/base/file_util.h b/base/file_util.h |
| index f8418318a6a7ecd92255e6d708624b7f1ae6bcf7..a755901a0b455d434873e1dad9924e8f6e69a994 100644 |
| --- a/base/file_util.h |
| +++ b/base/file_util.h |
| @@ -137,6 +137,11 @@ BASE_EXPORT bool TextContentsEqual(const FilePath& filename1, |
| // Useful for unit tests. |
| BASE_EXPORT bool ReadFileToString(const FilePath& path, std::string* contents); |
| +// Read the file at |path| into |contents|, returning true on success. |
| +// This function has an additional check on the maximum size of the file |
|
Andrew T Wilson (Slow)
2014/02/10 14:29:46
nit: put a period at the end of the sentence. Also
kaliamoorthi
2014/02/11 10:10:45
Done.
|
| +BASE_EXPORT bool ReadFileToString(const FilePath& path, std::string* contents, |
| + size_t maxsize); |
| + |
| #if defined(OS_POSIX) |
| // Read exactly |bytes| bytes from file descriptor |fd|, storing the result |