Chromium Code Reviews| Index: base/files/important_file_writer.h |
| diff --git a/base/files/important_file_writer.h b/base/files/important_file_writer.h |
| index ae814d5e1b36fc99e703e05405a94363fc13984e..50d8bf5317718040dbbe4a8eb9b9a40f64ad6ab1 100644 |
| --- a/base/files/important_file_writer.h |
| +++ b/base/files/important_file_writer.h |
| @@ -51,6 +51,9 @@ class BASE_EXPORT ImportantFileWriter : public NonThreadSafe { |
| virtual ~DataSerializer() {} |
| }; |
| + // Save |data| to |path|. Blocks and writes data on the current thread. |
|
Mattias Nissler (ping if slow)
2012/11/26 15:48:57
Should mention that this uses save-to-tempfile-and
Ivan Korotkov
2012/11/27 11:37:25
WriteFileAtomically sounds good enough to me.
|
| + static bool WriteToDisk(const FilePath& path, const std::string& data); |
| + |
| // Initialize the writer. |
| // |path| is the name of file to write. |
| // |task_runner| is the SequencedTaskRunner instance where on which we will |