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

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

Issue 377383002: Media Galleries: Access MTP devices by file ids rather than file paths. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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_device_async_delegate.cc
diff --git a/chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.cc b/chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.cc
index 004d5f7ee0bb93fde5a7e559b167374b2da8c9ee..cc091e9a94c88e9ac401b5779c0f952b8d00e0f2 100644
--- a/chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.cc
+++ b/chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.cc
@@ -7,11 +7,10 @@
#include "net/base/io_buffer.h"
MTPDeviceAsyncDelegate::ReadBytesRequest::ReadBytesRequest(
- const std::string& device_file_relative_path,
- net::IOBuffer* buf, int64 offset, int buf_len,
+ uint32 file_id, net::IOBuffer* buf, int64 offset, int buf_len,
const ReadBytesSuccessCallback& success_callback,
const ErrorCallback& error_callback)
- : device_file_relative_path(device_file_relative_path),
+ : file_id(file_id),
buf(buf),
offset(offset),
buf_len(buf_len),

Powered by Google App Engine
This is Rietveld 408576698