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

Unified Diff: base/file_util.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
« no previous file with comments | « base/file_util.h ('k') | base/file_util_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_util.cc
===================================================================
--- base/file_util.cc (revision 4466)
+++ base/file_util.cc (working copy)
@@ -289,7 +289,7 @@
return true;
}
-bool GetFileSize(const std::wstring& file_path, int64* file_size) {
+bool GetFileSize(const FilePath& file_path, int64* file_size) {
FileInfo info;
if (!GetFileInfo(file_path, &info))
return false;
@@ -350,6 +350,12 @@
*path_str = path.ToWStringHack();
return true;
}
agl 2008/11/04 20:57:27 Possibly put a line between the functions.
+bool GetFileInfo(const std::wstring& file_path, FileInfo* results) {
+ return GetFileInfo(FilePath::FromWStringHack(file_path), results);
+}
+bool GetFileSize(const std::wstring& file_path, int64* file_size) {
+ return GetFileSize(FilePath::FromWStringHack(file_path), file_size);
+}
bool GetTempDir(std::wstring* path_str) {
FilePath path;
if (!GetTempDir(&path))
« no previous file with comments | « base/file_util.h ('k') | base/file_util_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698