Chromium Code Reviews| Index: chrome/browser/system_monitor/removable_device_notifications_window_win.cc |
| diff --git a/chrome/browser/system_monitor/removable_device_notifications_window_win.cc b/chrome/browser/system_monitor/removable_device_notifications_window_win.cc |
| index 6477c0d7f3867e235725309e83ff322d8c8cef86..24cd6f4978c0d0ec1913b0c56d37e9114fdaf6ea 100644 |
| --- a/chrome/browser/system_monitor/removable_device_notifications_window_win.cc |
| +++ b/chrome/browser/system_monitor/removable_device_notifications_window_win.cc |
| @@ -88,6 +88,18 @@ void RemovableDeviceNotificationsWindowWin::Init() { |
| portable_device_watcher_->Init(window_); |
| } |
| +bool RemovableDeviceNotificationsWindowWin::GetMTPStorageInfoFromDeviceId( |
| + const std::string& storage_device_id, |
| + string16* device_location, |
| + string16* storage_object_id) { |
| + MediaStorageUtil::Type type; |
| + MediaStorageUtil::CrackDeviceId(storage_device_id, &type, NULL); |
| + if (type != MediaStorageUtil::MTP_OR_PTP) |
| + return false; |
| + return portable_device_watcher_->GetMTPStorageInfoFromDeviceId( |
| + storage_device_id, device_location, storage_object_id); |
|
Peter Kasting
2012/11/01 21:38:37
Nit: Or just:
return (type == MediaStorageUtil:
kmadhusu
2012/11/02 03:27:16
Done.
|
| +} |
| + |
| bool RemovableDeviceNotificationsWindowWin::GetDeviceInfoForPath( |
| const FilePath& path, |
| base::SystemMonitor::RemovableStorageInfo* device_info) { |