| Index: chrome/browser/media_gallery/media_file_system_registry.cc
|
| diff --git a/chrome/browser/media_gallery/media_file_system_registry.cc b/chrome/browser/media_gallery/media_file_system_registry.cc
|
| index c8194df038d2ebf706d2a3fdb61d6cbca2382645..0561e7a80ec22c4ca32947ab61489d30fdb87c20 100644
|
| --- a/chrome/browser/media_gallery/media_file_system_registry.cc
|
| +++ b/chrome/browser/media_gallery/media_file_system_registry.cc
|
| @@ -17,6 +17,9 @@
|
| #include "content/public/browser/render_process_host.h"
|
| #include "webkit/fileapi/file_system_types.h"
|
| #include "webkit/fileapi/isolated_context.h"
|
| +#include "webkit/fileapi/media_device_map_service.h"
|
| +
|
| +using fileapi::MediaDeviceMapService;
|
|
|
| namespace chrome {
|
|
|
| @@ -81,12 +84,18 @@ MediaFileSystemRegistry::GetMediaFileSystems(
|
| return results;
|
| }
|
|
|
| -void MediaFileSystemRegistry::OnMediaDeviceDetached(const std::string& id) {
|
| +void MediaFileSystemRegistry::OnMediaDeviceDetached(
|
| + const std::string& id,
|
| + const FilePath::StringType& location) {
|
| + printf("%s\n", __FUNCTION__);
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
|
|
| DeviceIdToMediaPathMap::iterator it = device_id_map_.find(id);
|
| if (it == device_id_map_.end())
|
| return;
|
| +
|
| + printf("Found %s\n", __FUNCTION__);
|
| + MediaDeviceMapService::GetInstance()->RemoveMediaDevice(location);
|
| RevokeMediaFileSystem(it->second);
|
| device_id_map_.erase(it);
|
| }
|
|
|