Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2541)

Unified Diff: base/files/important_file_writer.h

Issue 11308196: [cros] RlzValueStore made protected by a cross-process lock and not persisted over browser lifetime… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/files/important_file_writer.cc » ('j') | rlz/chromeos/lib/rlz_value_store_chromeos.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | base/files/important_file_writer.cc » ('j') | rlz/chromeos/lib/rlz_value_store_chromeos.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698