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

Unified Diff: base/file_util.h

Issue 2096005: page cycler: Use buffer-cache priming code on all systems. (Closed)
Patch Set: simpler Created 10 years, 7 months 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/file_util.cc » ('j') | base/file_util.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_util.h
diff --git a/base/file_util.h b/base/file_util.h
index 64a91eea09a765124171d3683d2600dabb1a93a9..e62b30e09f8490968641c569c91ebe87443a1a89 100644
--- a/base/file_util.h
+++ b/base/file_util.h
@@ -159,6 +159,8 @@ bool ContentsEqual(const FilePath& filename1,
bool TextContentsEqual(const FilePath& filename1, const FilePath& filename2);
// Read the file at |path| into |contents|, returning true on success.
+// |contents| may be NULL, in which case this function is useful for its
+// side effect of priming the disk cache.
// Useful for unit tests.
bool ReadFileToString(const FilePath& path, std::string* contents);
« no previous file with comments | « no previous file | base/file_util.cc » ('j') | base/file_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698