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

Unified Diff: chrome/browser/media_gallery/media_file_system_registry.cc

Issue 10829136: Adding RevokeFileSystemByPath (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | webkit/fileapi/isolated_context.h » ('j') | webkit/fileapi/isolated_context.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
}
« no previous file with comments | « no previous file | webkit/fileapi/isolated_context.h » ('j') | webkit/fileapi/isolated_context.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698