Index: chrome/browser/intents/device_attached_intent_source.cc |
diff --git a/chrome/browser/intents/device_attached_intent_source.cc b/chrome/browser/intents/device_attached_intent_source.cc |
index 5cb5762417100d13e1aebaa1c312bb442dc3ea87..f80ee15ca91248757e0e87a6678ab1e0fd1dc5be 100644 |
--- a/chrome/browser/intents/device_attached_intent_source.cc |
+++ b/chrome/browser/intents/device_attached_intent_source.cc |
@@ -111,7 +111,7 @@ void DeviceAttachedIntentSource::OnRemovableStorageAttached( |
// TODO(kmadhusu): Handle all device types. http://crbug.com/140353. |
MediaStorageUtil::Type type; |
MediaStorageUtil::CrackDeviceId(id, &type, NULL); |
- if (type == MediaStorageUtil::USB_MTP) |
+ if (type == MediaStorageUtil::MTP_OR_PTP) |
return; |
DCHECK(MediaStorageUtil::IsRemovableDevice(id)); |
@@ -166,7 +166,7 @@ void DeviceAttachedIntentSource::OnRemovableStorageDetached( |
// TODO(kmadhusu, vandebo): Clean up this code. http://crbug.com/140340. |
MediaStorageUtil::Type type; |
MediaStorageUtil::CrackDeviceId(it->second.device_id, &type, NULL); |
- if (type == MediaStorageUtil::USB_MTP) { |
+ if (type == MediaStorageUtil::MTP_OR_PTP) { |
MediaDeviceMapService::GetInstance()->RemoveMediaDevice( |
it->second.location); |
} |