Index: chrome/browser/media_gallery/media_storage_util.cc |
diff --git a/chrome/browser/media_gallery/media_storage_util.cc b/chrome/browser/media_gallery/media_storage_util.cc |
index 2379d70d3d98b573ea9e08a7f0cf4e146143b1d4..85bded38bc7b61d6847c81706492c93823d2ec41 100644 |
--- a/chrome/browser/media_gallery/media_storage_util.cc |
+++ b/chrome/browser/media_gallery/media_storage_util.cc |
@@ -154,7 +154,7 @@ void MediaStorageUtil::IsDeviceAttached(const std::string& device_id, |
callback.Run(!FindMediaDeviceLocationById(device_id).empty()); |
break; |
case USB_MASS_STORAGE_NO_DCIM: |
- FindUSBDeviceById(unique_id, |
+ FindUSBDeviceById(device_id, |
base::Bind(&EmptyPathIsFalseCallback, callback)); |
break; |
case OTHER_MASS_STORAGE: |
@@ -200,7 +200,7 @@ void MediaStorageUtil::FindDevicePathById(const std::string& device_id, |
callback.Run(FilePath()); |
break; |
case USB_MASS_STORAGE_NO_DCIM: |
- FindUSBDeviceById(unique_id, callback); |
+ FindUSBDeviceById(device_id, callback); |
break; |
case OTHER_MASS_STORAGE: |
// For this type, the unique_id is the path. |
@@ -220,7 +220,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 USB_MASS_STORAGE_NO_DCIM, so it's a device possibly mounted |