Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[Media Galleries] Ignore Mac PTP volumes mounted with mass storage

R=thestig@chromium.org
BUG=174834


Review URL: https://chromiumcodereview.appspot.com/13077003

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@190668 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
  • Loading branch information...
commit 98412bd475dab02f744a33245988b94be7d3a517 1 parent b472b97
gbillock@chromium.org authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 storage_monitor/image_capture_device_manager.mm
View
5 storage_monitor/image_capture_device_manager.mm
@@ -89,6 +89,11 @@ - (void)deviceBrowser:(ICDeviceBrowser*)browser
if (!(addedDevice.type & ICDeviceTypeCamera))
return;
+ // Ignore mass storage attaches -- those will be handled
+ // by Mac's removable storage watcher.
+ if ([addedDevice.transportType isEqualToString:ICTransportTypeMassStorage])
+ return;
+
ICCameraDevice* cameraDevice =
base::mac::ObjCCastStrict<ICCameraDevice>(addedDevice);
Please sign in to comment.
Something went wrong with that request. Please try again.