Index: net/base/upload_data_stream.cc |
diff --git a/net/base/upload_data_stream.cc b/net/base/upload_data_stream.cc |
index 1438e2095ff802285a31cf8309f8267581c746d5..0a41a13c791d06e40a1705b454b3ddf0c4aec1e9 100644 |
--- a/net/base/upload_data_stream.cc |
+++ b/net/base/upload_data_stream.cc |
@@ -65,19 +65,19 @@ void UploadDataStream::FillBuf() { |
if (!next_element_stream_.IsOpen()) { |
int flags = base::PLATFORM_FILE_OPEN | |
base::PLATFORM_FILE_READ; |
- int rv = next_element_stream_.Open( |
- FilePath::FromWStringHack(element.file_path()), flags); |
+ int rv = next_element_stream_.Open(element.file_path(), flags); |
// If the file does not exist, that's technically okay.. we'll just |
// upload an empty file. This is for consistency with Mozilla. |
- DLOG_IF(WARNING, rv != OK) << "Failed to open \"" << |
- element.file_path() << "\" for reading: " << rv; |
+ DLOG_IF(WARNING, rv != OK) << "Failed to open \"" |
+ << element.file_path().value() |
+ << "\" for reading: " << rv; |
next_element_remaining_ = 0; // Default to reading nothing. |
if (rv == OK) { |
uint64 offset = element.file_range_offset(); |
if (offset && next_element_stream_.Seek(FROM_BEGIN, offset) < 0) { |
- DLOG(WARNING) << "Failed to seek \"" << element.file_path() << |
- "\" to offset: " << offset; |
+ DLOG(WARNING) << "Failed to seek \"" << element.file_path().value() |
+ << "\" to offset: " << offset; |
} else { |
next_element_remaining_ = element.file_range_length(); |
} |