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 455b4a180a96f6b9051e59f4604dd18388db04b8..3fe3544e0afecd460d37371de4b5aaf2224d3f34 100644 |
--- a/chrome/browser/media_gallery/media_file_system_registry.cc |
+++ b/chrome/browser/media_gallery/media_file_system_registry.cc |
@@ -182,6 +182,8 @@ void MediaFileSystemRegistry::RevokeMediaFileSystem(const FilePath& path) { |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
IsolatedContext* isolated_context = IsolatedContext::GetInstance(); |
+ isolated_context->RevokeFileSystemByPath(path); |
+ |
for (ChildIdToMediaFSMap::iterator child_it = media_fs_map_.begin(); |
child_it != media_fs_map_.end(); |
++child_it) { |
@@ -189,7 +191,6 @@ void MediaFileSystemRegistry::RevokeMediaFileSystem(const FilePath& path) { |
MediaPathToFSIDMap::iterator media_path_it = child_map.find(path); |
if (media_path_it == child_map.end()) |
continue; |
- isolated_context->RevokeFileSystem(media_path_it->second); |
child_map.erase(media_path_it); |
} |
} |