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

Unified Diff: chrome/browser/media_galleries/win/mtp_device_delegate_impl_win.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/win/mtp_device_delegate_impl_win.cc
diff --git a/chrome/browser/media_galleries/win/mtp_device_delegate_impl_win.cc b/chrome/browser/media_galleries/win/mtp_device_delegate_impl_win.cc
index e21a4a2536d23a529b44afba1789988f5c8dc635..da22ad9a23382397ee58fd188e158792abc890be 100644
--- a/chrome/browser/media_galleries/win/mtp_device_delegate_impl_win.cc
+++ b/chrome/browser/media_galleries/win/mtp_device_delegate_impl_win.cc
@@ -448,7 +448,9 @@ bool MTPDeviceDelegateImplWin::IsStreaming() {
void MTPDeviceDelegateImplWin::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) {
NOTREACHED();

Powered by Google App Engine
This is Rietveld 408576698