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..eb648d894da9e94f43182831764b4fcffd2ba0a0 100644 |
--- a/chrome/browser/intents/device_attached_intent_source.cc |
+++ b/chrome/browser/intents/device_attached_intent_source.cc |
@@ -23,13 +23,6 @@ |
#include "webkit/fileapi/isolated_context.h" |
#include "webkit/glue/web_intent_data.h" |
#include "webkit/glue/web_intent_service_data.h" |
-#include "webkit/fileapi/media/media_file_system_config.h" |
- |
-#if defined(SUPPORT_MEDIA_FILESYSTEM) |
-#include "webkit/fileapi/media/media_device_map_service.h" |
- |
-using fileapi::MediaDeviceMapService; |
-#endif |
using base::SystemMonitor; |
using chrome::MediaStorageUtil; |
@@ -157,19 +150,7 @@ void DeviceAttachedIntentSource::OnRemovableStorageDetached( |
if (it == device_id_map_.end()) |
return; |
- // TODO(kmadhusu) This should be something like |
- // RevokeFileSystemByDevice(std::string) |
FilePath path(it->second.location); |
fileapi::IsolatedContext::GetInstance()->RevokeFileSystemByPath(path); |
- |
-#if defined(SUPPORT_MEDIA_FILESYSTEM) |
- // 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) { |
- MediaDeviceMapService::GetInstance()->RemoveMediaDevice( |
- it->second.location); |
- } |
-#endif |
device_id_map_.erase(it); |
} |