| Index: webkit/chromeos/fileapi/remote_file_system_operation.cc
|
| ===================================================================
|
| --- webkit/chromeos/fileapi/remote_file_system_operation.cc (revision 183651)
|
| +++ webkit/chromeos/fileapi/remote_file_system_operation.cc (working copy)
|
| @@ -110,7 +110,7 @@
|
| void RemoteFileSystemOperation::Write(
|
| const net::URLRequestContext* url_request_context,
|
| const FileSystemURL& url,
|
| - const GURL& blob_url,
|
| + scoped_ptr<webkit_blob::BlobDataHandle> blob_handle,
|
| int64 offset,
|
| const WriteCallback& callback) {
|
| DCHECK(SetPendingOperationType(kOperationWrite));
|
| @@ -127,8 +127,12 @@
|
| url,
|
| offset))));
|
|
|
| + // Use a URLRequest to read the blob data that's to be written to the file.
|
| scoped_ptr<net::URLRequest> blob_request(url_request_context->CreateRequest(
|
| - blob_url, file_writer_delegate_.get()));
|
| + GURL("blob://see_user_data/"), file_writer_delegate_.get()));
|
| + webkit_blob::BlobProtocolHandler::SetRequestedBlobDataHandle(
|
| + blob_request.get(),
|
| + blob_handle.Pass());
|
|
|
| file_writer_delegate_->Start(blob_request.Pass());
|
| }
|
|
|