Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2888)

Unified Diff: chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.cc

Issue 518743002: Media gallery fixups for scoped_refptr<T> operator T* removal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add callback typedef Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.cc
diff --git a/chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.cc b/chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.cc
index 14c3c81464ada5e70355dec2b6d303dd5092b7b4..527a0832a2cbb84e329b3e8a3890ed443d9dac87 100644
--- a/chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.cc
+++ b/chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.cc
@@ -42,7 +42,7 @@ void CallInt64CompletionCallbackWithPlatformFileError(
void ReadBytes(
const storage::FileSystemURL& url,
- net::IOBuffer* buf,
+ const scoped_refptr<net::IOBuffer>& buf,
int64 offset,
int buf_len,
const MTPDeviceAsyncDelegate::ReadBytesSuccessCallback& success_callback,
@@ -55,7 +55,7 @@ void ReadBytes(
delegate->ReadBytes(
url.path(),
- make_scoped_refptr(buf),
+ buf,
offset,
buf_len,
success_callback,

Powered by Google App Engine
This is Rietveld 408576698