diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-19 11:07:55 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-19 11:07:55 +0000 |
commit | 4e074bae766e9e560da4227468689508b9cd96eb (patch) | |
tree | 60fe030b9e106b10e16b829097f06d9fb47225cd /base/file_util.h | |
parent | a841c35f2c3ca42558c76ff48ac4ae61f907d63e (diff) | |
download | chromium_src-4e074bae766e9e560da4227468689508b9cd96eb.zip chromium_src-4e074bae766e9e560da4227468689508b9cd96eb.tar.gz chromium_src-4e074bae766e9e560da4227468689508b9cd96eb.tar.bz2 |
page cycler: Use buffer-cache priming code on all systems.
I noticed that the first time I run the page cycler the test numbers
are worse, probably because the test pages are not in cache. We
already have this code on Mac and I don't see why it shouldn't apply
to all systems.
Review URL: http://codereview.chromium.org/2096005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47650 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util.h')
-rw-r--r-- | base/file_util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/base/file_util.h b/base/file_util.h index 64a91ee..e62b30e 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); |