| Index: net/disk_cache/mem_entry_impl.cc
|
| diff --git a/net/disk_cache/mem_entry_impl.cc b/net/disk_cache/mem_entry_impl.cc
|
| index 0d3b00a52fafd009f8ec2af8a689b9ec989e9925..9294212d111dbb273fa4fd95c5fb302a03f7b5c1 100644
|
| --- a/net/disk_cache/mem_entry_impl.cc
|
| +++ b/net/disk_cache/mem_entry_impl.cc
|
| @@ -378,8 +378,11 @@ int MemEntryImpl::InternalReadSparseData(int64 offset, IOBuffer* buf,
|
| CreateNetLogSparseReadWriteCallback(child->net_log().source(),
|
| io_buf->BytesRemaining()));
|
| }
|
| - int ret = child->ReadData(kSparseData, child_offset, io_buf,
|
| - io_buf->BytesRemaining(), CompletionCallback());
|
| + int ret = child->ReadData(kSparseData,
|
| + child_offset,
|
| + io_buf.get(),
|
| + io_buf->BytesRemaining(),
|
| + CompletionCallback());
|
| if (net_log_.IsLoggingAllEvents()) {
|
| net_log_.EndEventWithNetErrorCode(
|
| net::NetLog::TYPE_SPARSE_READ_CHILD_DATA, ret);
|
| @@ -440,8 +443,12 @@ int MemEntryImpl::InternalWriteSparseData(int64 offset, IOBuffer* buf,
|
| // previously written.
|
| // TODO(hclam): if there is data in the entry and this write is not
|
| // continuous we may want to discard this write.
|
| - int ret = child->WriteData(kSparseData, child_offset, io_buf, write_len,
|
| - CompletionCallback(), true);
|
| + int ret = child->WriteData(kSparseData,
|
| + child_offset,
|
| + io_buf.get(),
|
| + write_len,
|
| + CompletionCallback(),
|
| + true);
|
| if (net_log_.IsLoggingAllEvents()) {
|
| net_log_.EndEventWithNetErrorCode(
|
| net::NetLog::TYPE_SPARSE_WRITE_CHILD_DATA, ret);
|
|
|