| Index: chrome/browser/chromeos/gdata/gdata.cc
|
| diff --git a/chrome/browser/chromeos/gdata/gdata.cc b/chrome/browser/chromeos/gdata/gdata.cc
|
| index fadad8500f10c00b379a83d7a8c325ac67c53970..248a912c9bd0381270ec32db374a5fa11f18e713 100644
|
| --- a/chrome/browser/chromeos/gdata/gdata.cc
|
| +++ b/chrome/browser/chromeos/gdata/gdata.cc
|
| @@ -1202,8 +1202,9 @@ void DocumentsService::TestUpload() {
|
|
|
| // Create a FileStream to make sure the file can be opened successfully.
|
| scoped_ptr<net::FileStream> file(new net::FileStream(NULL));
|
| - int rv = file->Open(file_path,
|
| - base::PLATFORM_FILE_OPEN | base::PLATFORM_FILE_READ);
|
| + int rv = file->OpenSync(
|
| + file_path,
|
| + base::PLATFORM_FILE_OPEN | base::PLATFORM_FILE_READ);
|
| if (rv != net::OK) {
|
| // If the file can't be opened, we'll just upload an empty file.
|
| DLOG(WARNING) << "Error opening \"" << file_path.value()
|
|
|