Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: chrome/browser/system_monitor/removable_device_notifications_window_win.cc

Issue 11297002: [Media Gallery] Added code to support mtp device media file system on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed review comments Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..f767f5926d037809236f61905f22d649eeabe542 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,17 @@ 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);
+ return ((type == MediaStorageUtil::MTP_OR_PTP) &&
+ portable_device_watcher_->GetMTPStorageInfoFromDeviceId(
+ storage_device_id, device_location, storage_object_id));
+}
+
bool RemovableDeviceNotificationsWindowWin::GetDeviceInfoForPath(
const FilePath& path,
base::SystemMonitor::RemovableStorageInfo* device_info) {

Powered by Google App Engine
This is Rietveld 408576698