diff options
Diffstat (limited to 'chrome/browser/media_gallery/media_storage_util.cc')
-rw-r--r-- | chrome/browser/media_gallery/media_storage_util.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/media_gallery/media_storage_util.cc b/chrome/browser/media_gallery/media_storage_util.cc index 14dece0..ec9c477 100644 --- a/chrome/browser/media_gallery/media_storage_util.cc +++ b/chrome/browser/media_gallery/media_storage_util.cc @@ -156,7 +156,7 @@ void MediaStorageUtil::IsDeviceAttached(const std::string& device_id, callback.Run(!FindRemovableStorageLocationById(device_id).empty()); break; case REMOVABLE_MASS_STORAGE_NO_DCIM: - FindUSBDeviceById(unique_id, + FindUSBDeviceById(device_id, base::Bind(&EmptyPathIsFalseCallback, callback)); break; case FIXED_MASS_STORAGE: @@ -202,7 +202,7 @@ void MediaStorageUtil::FindDevicePathById(const std::string& device_id, callback.Run(FilePath()); break; case REMOVABLE_MASS_STORAGE_NO_DCIM: - FindUSBDeviceById(unique_id, callback); + FindUSBDeviceById(device_id, callback); break; case FIXED_MASS_STORAGE: // For this type, the unique_id is the path. @@ -222,7 +222,7 @@ void MediaStorageUtil::FindDevicePathById(const std::string& device_id, MediaStorageUtil::MediaStorageUtil() {} // static -void MediaStorageUtil::FindUSBDeviceById(const std::string& unique_id, +void MediaStorageUtil::FindUSBDeviceById(const std::string& device_id, const FilePathCallback& callback) { // TODO(vandebo) This needs to be implemented per platform. // Type is REMOVABLE_MASS_STORAGE_NO_DCIM, so it's a device possibly mounted |