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..9bc8f07cfe4b9f8c323cb8694cdaf7c7ecff4b07 100644 |
--- a/base/files/important_file_writer.h |
+++ b/base/files/important_file_writer.h |
@@ -51,6 +51,11 @@ class BASE_EXPORT ImportantFileWriter : public NonThreadSafe { |
virtual ~DataSerializer() {} |
}; |
+ // Save |data| to |path| in an atomic manner (see the class comment above). |
+ // Blocks and writes data on the current thread. |
+ static bool WriteFileAtomically(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 |