Index: net/disk_cache/mem_entry_impl.cc |
=================================================================== |
--- net/disk_cache/mem_entry_impl.cc (revision 199883) |
+++ net/disk_cache/mem_entry_impl.cc (working copy) |
@@ -378,7 +378,7 @@ |
CreateNetLogSparseReadWriteCallback(child->net_log().source(), |
io_buf->BytesRemaining())); |
} |
- int ret = child->ReadData(kSparseData, child_offset, io_buf, |
+ int ret = child->ReadData(kSparseData, child_offset, io_buf.get(), |
io_buf->BytesRemaining(), CompletionCallback()); |
if (net_log_.IsLoggingAllEvents()) { |
net_log_.EndEventWithNetErrorCode( |
@@ -440,8 +440,8 @@ |
// 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); |