Index: components/storage_monitor/storage_info.cc |
diff --git a/components/storage_monitor/storage_info.cc b/components/storage_monitor/storage_info.cc |
index 52ae0c2502f908a48beb5e4d3b032aa40331c213..19d59b680519896875dc0b53973eccab2fd86430 100644 |
--- a/components/storage_monitor/storage_info.cc |
+++ b/components/storage_monitor/storage_info.cc |
@@ -180,6 +180,12 @@ bool StorageInfo::IsPicasaDevice(const std::string& device_id) { |
return CrackDeviceId(device_id, &type, NULL) && type == PICASA; |
} |
+// static |
+bool StorageInfo::IsMTPDevice(const std::string& device_id) { |
+ Type type; |
+ return CrackDeviceId(device_id, &type, NULL) && type == MTP_OR_PTP; |
+} |
+ |
base::string16 StorageInfo::GetDisplayName(bool with_size) const { |
return GetDisplayNameWithOverride(base::string16(), with_size); |
} |