| Index: net/base/upload_data_stream.cc
|
| ===================================================================
|
| --- net/base/upload_data_stream.cc (revision 4450)
|
| +++ net/base/upload_data_stream.cc (working copy)
|
| @@ -68,7 +68,9 @@
|
| DCHECK(element.type() == UploadData::TYPE_FILE);
|
|
|
| if (!next_element_stream_.IsOpen()) {
|
| - int rv = next_element_stream_.Open(element.file_path(), false);
|
| + int flags = base::PLATFORM_FILE_OPEN |
|
| + base::PLATFORM_FILE_READ;
|
| + 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 \"" <<
|
|
|