Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[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 1 changed file with 5 additions and 0 deletions. Show diff stats Hide diff stats

  1. +5 0 storage_monitor/image_capture_device_manager.mm
5 storage_monitor/image_capture_device_manager.mm
@@ -89,6 +89,11 @@ - (void)deviceBrowser:(ICDeviceBrowser*)browser
89 89 if (!(addedDevice.type & ICDeviceTypeCamera))
90 90 return;
91 91
  92 + // Ignore mass storage attaches -- those will be handled
  93 + // by Mac's removable storage watcher.
  94 + if ([addedDevice.transportType isEqualToString:ICTransportTypeMassStorage])
  95 + return;
  96 +
92 97 ICCameraDevice* cameraDevice =
93 98 base::mac::ObjCCastStrict<ICCameraDevice>(addedDevice);
94 99

0 comments on commit 98412bd

Please sign in to comment.
Something went wrong with that request. Please try again.