| Index: chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc
|
| diff --git a/chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc b/chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc
|
| index 2cc3f19b39666fd38fe9e4ac623bf6b7670d31d7..b1cd91c59e85b22ebcf1fb10cdbc323495c7d5be 100644
|
| --- a/chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc
|
| +++ b/chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc
|
| @@ -410,7 +410,9 @@ bool MTPDeviceDelegateImplLinux::IsStreaming() {
|
|
|
| void MTPDeviceDelegateImplLinux::ReadBytes(
|
| const base::FilePath& device_file_path,
|
| - net::IOBuffer* buf, int64 offset, int buf_len,
|
| + const scoped_refptr<net::IOBuffer>& buf,
|
| + int64 offset,
|
| + int buf_len,
|
| const ReadBytesSuccessCallback& success_callback,
|
| const ErrorCallback& error_callback) {
|
| DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
|
| @@ -419,7 +421,7 @@ void MTPDeviceDelegateImplLinux::ReadBytes(
|
| base::Bind(&MTPDeviceDelegateImplLinux::ReadBytesInternal,
|
| weak_ptr_factory_.GetWeakPtr(),
|
| device_file_path,
|
| - make_scoped_refptr(buf),
|
| + buf,
|
| offset,
|
| buf_len,
|
| success_callback,
|
|
|