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

Unified Diff: base/file_util_win.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_win.cc
===================================================================
--- base/file_util_win.cc (revision 4466)
+++ base/file_util_win.cc (working copy)
@@ -456,9 +456,9 @@
return err == ERROR_SUCCESS;
}
-bool GetFileInfo(const std::wstring& file_path, FileInfo* results) {
+bool GetFileInfo(const FilePath& file_path, FileInfo* results) {
WIN32_FILE_ATTRIBUTE_DATA attr;
- if (!GetFileAttributesEx(file_path.c_str(), GetFileExInfoStandard, &attr))
+ if (!GetFileAttributesEx(file_path.ToWstringHack().c_str(), GetFileExInfoStandard, &attr))
return false;
ULARGE_INTEGER size;

Powered by Google App Engine
This is Rietveld 408576698