diff options
author | erikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-28 00:22:46 +0000 |
---|---|---|
committer | erikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-28 00:22:46 +0000 |
commit | 3c5281026a2bd92b33eb46418b46baec351d99ee (patch) | |
tree | 876df6c4c36a8764bdb073eb8ae71a548f786de3 /base/file_util.h | |
parent | d7483fd119690067a7f31df60b612e1606567d0b (diff) | |
download | chromium_src-3c5281026a2bd92b33eb46418b46baec351d99ee.zip chromium_src-3c5281026a2bd92b33eb46418b46baec351d99ee.tar.gz chromium_src-3c5281026a2bd92b33eb46418b46baec351d99ee.tar.bz2 |
Add FilePath version of ReadFileToString.
Review URL: http://codereview.chromium.org/19401
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8774 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 c546b9a..3a06671 100644 --- a/base/file_util.h +++ b/base/file_util.h @@ -215,6 +215,8 @@ bool ContentsEqual(const std::wstring& filename1, // Read the file at |path| into |contents|, returning true on success. // Useful for unit tests. +bool ReadFileToString(const FilePath& path, std::string* contents); +// Deprecated version. bool ReadFileToString(const std::wstring& path, std::string* contents); #if defined(OS_WIN) |