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

Unified Diff: base/test_file_util_linux.cc

Issue 9639: Port flush_cache tool. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 years 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 | « base/test_file_util.h ('k') | base/test_file_util_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test_file_util_linux.cc
===================================================================
--- base/test_file_util_linux.cc (revision 6884)
+++ base/test_file_util_linux.cc (working copy)
@@ -12,9 +12,8 @@
namespace file_util {
-bool EvictFileFromSystemCache(const wchar_t* file) {
- FilePath fpath = FilePath::FromWStringHack(file);
- int fd = open(fpath.value().c_str(), O_RDONLY);
+bool EvictFileFromSystemCache(const FilePath& file) {
+ int fd = open(file.value().c_str(), O_RDONLY);
if (fd < 0)
return false;
if (fdatasync(fd) != 0)
« no previous file with comments | « base/test_file_util.h ('k') | base/test_file_util_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698