summaryrefslogtreecommitdiffstats
path: root/base/test_file_util_linux.cc
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-11 20:14:13 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-11 20:14:13 +0000
commitafa5a314c7d3698c8065ba824e5700c2af211844 (patch)
tree3be3f505dd3d5609eaaae5c0189892fa30302885 /base/test_file_util_linux.cc
parent1ecbf13615d89a0e0369cab2e70692d5b9a46341 (diff)
downloadchromium_src-afa5a314c7d3698c8065ba824e5700c2af211844.zip
chromium_src-afa5a314c7d3698c8065ba824e5700c2af211844.tar.gz
chromium_src-afa5a314c7d3698c8065ba824e5700c2af211844.tar.bz2
Reverting 6815.
Review URL: http://codereview.chromium.org/14006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6816 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/test_file_util_linux.cc')
-rw-r--r--base/test_file_util_linux.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/base/test_file_util_linux.cc b/base/test_file_util_linux.cc
index c1b3768..421d182 100644
--- a/base/test_file_util_linux.cc
+++ b/base/test_file_util_linux.cc
@@ -12,8 +12,9 @@
namespace file_util {
-bool EvictFileFromSystemCache(const FilePath& file) {
- int fd = open(file.value().c_str(), O_RDONLY);
+bool EvictFileFromSystemCache(const wchar_t* file) {
+ FilePath fpath = FilePath::FromWStringHack(file);
+ int fd = open(fpath.value().c_str(), O_RDONLY);
if (fd < 0)
return false;
if (fdatasync(fd) != 0)