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

Unified Diff: chrome/browser/intents/device_attached_intent_source.cc

Issue 10824170: Set media device name as isolated file system name. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 4 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698