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

Unified Diff: base/file_util_posix.cc

Issue 9074: Port more of url_request_unittest.cc.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 1 month 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
Index: base/file_util_posix.cc
===================================================================
--- base/file_util_posix.cc (revision 4466)
+++ base/file_util_posix.cc (working copy)
@@ -311,9 +311,9 @@
return true;
}
-bool GetFileInfo(const std::wstring& file_path, FileInfo* results) {
+bool GetFileInfo(const FilePath& file_path, FileInfo* results) {
struct stat64 file_info;
- if (stat64(WideToUTF8(file_path).c_str(), &file_info) != 0)
+ if (stat64(file_path.value().c_str(), &file_info) != 0)
return false;
results->is_directory = S_ISDIR(file_info.st_mode);
results->size = file_info.st_size;
« base/file_util.cc ('K') | « base/file_util.cc ('k') | base/file_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698