| Index: net/base/upload_data.cc
|
| diff --git a/net/base/upload_data.cc b/net/base/upload_data.cc
|
| index 424939e4238a20e10ccb4382579c26242ecfe5af..57991972c191b9d71fffe7c7e755638ddae8282c 100644
|
| --- a/net/base/upload_data.cc
|
| +++ b/net/base/upload_data.cc
|
| @@ -102,8 +102,9 @@ FileStream* UploadData::Element::NewFileStreamForReading() {
|
| base::ThreadRestrictions::ScopedAllowIO allow_io;
|
|
|
| scoped_ptr<FileStream> file(new FileStream(NULL));
|
| - int64 rv = file->Open(file_path_,
|
| - base::PLATFORM_FILE_OPEN | base::PLATFORM_FILE_READ);
|
| + int64 rv = file->OpenSync(
|
| + file_path_,
|
| + base::PLATFORM_FILE_OPEN | base::PLATFORM_FILE_READ);
|
| if (rv != OK) {
|
| // If the file can't be opened, we'll just upload an empty file.
|
| DLOG(WARNING) << "Failed to open \"" << file_path_.value()
|
|
|