| Index: chrome/browser/media_galleries/fileapi/mtp_device_map_service.cc
|
| diff --git a/chrome/browser/media_galleries/fileapi/mtp_device_map_service.cc b/chrome/browser/media_galleries/fileapi/mtp_device_map_service.cc
|
| index 6941878f69c33e8a1711cfa7292fb9c98103a952..16d8f5763b51784192351df261505ac9d87b8443 100644
|
| --- a/chrome/browser/media_galleries/fileapi/mtp_device_map_service.cc
|
| +++ b/chrome/browser/media_galleries/fileapi/mtp_device_map_service.cc
|
| @@ -28,6 +28,10 @@ void MTPDeviceMapService::RegisterMTPFileSystem(
|
| const base::FilePath::StringType& device_location,
|
| const std::string& filesystem_id,
|
| const bool read_only) {
|
| +#if defined(OS_ANDROID)
|
| + // No CreateMTPDeviceAsyncDelegate implementation
|
| + NOTIMPLEMENTED();
|
| +#else
|
| DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
|
| DCHECK(!device_location.empty());
|
| DCHECK(!filesystem_id.empty());
|
| @@ -46,10 +50,15 @@ void MTPDeviceMapService::RegisterMTPFileSystem(
|
|
|
| mtp_device_usage_map_[key]++;
|
| mtp_device_map_[filesystem_id] = make_pair(device_location, read_only);
|
| +#endif
|
| }
|
|
|
| void MTPDeviceMapService::RevokeMTPFileSystem(
|
| const std::string& filesystem_id) {
|
| +#if defined(OS_ANDROID)
|
| + // No RemoveAsyncDelegate implementation
|
| + NOTIMPLEMENTED();
|
| +#else
|
| DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
|
| DCHECK(!filesystem_id.empty());
|
|
|
| @@ -71,6 +80,7 @@ void MTPDeviceMapService::RevokeMTPFileSystem(
|
| RemoveAsyncDelegate(device_location, read_only);
|
| }
|
| }
|
| +#endif
|
| }
|
|
|
| void MTPDeviceMapService::AddAsyncDelegate(
|
|
|