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..4188364585e6f5584f1620d4c24cc9a90c3bfb39 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::GetMTPStorageInfoFromUniqueId( |
|
Lei Zhang
2012/11/01 02:34:57
Should 'unique id' be 'device id' ? We use 'device
kmadhusu
2012/11/01 17:59:00
Renamed GetMTPStorageInfoFromUniqueId => GetMTPSto
|
| + const std::string& storage_unique_id, |
| + string16* device_location, |
| + string16* storage_object_id) { |
| + MediaStorageUtil::Type type; |
| + MediaStorageUtil::CrackDeviceId(storage_unique_id, &type, NULL); |
| + if (type != MediaStorageUtil::MTP_OR_PTP) |
| + return false; |
| + return portable_device_watcher_->GetMTPStorageInfoFromUniqueId( |
| + storage_unique_id, device_location, storage_object_id); |
| +} |
| + |
| bool RemovableDeviceNotificationsWindowWin::GetDeviceInfoForPath( |
| const FilePath& path, |
| base::SystemMonitor::RemovableStorageInfo* device_info) { |