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

Unified Diff: chrome/browser/extensions/extension_service.cc

Issue 10909182: Make FileSystemContext respect StoragePartitions. filesystem:// urls will be properly isolated (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove useless headers. Created 8 years, 3 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 | « chrome/browser/extensions/data_deleter.cc ('k') | chrome/browser/profiles/off_the_record_profile_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_service.cc
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
index 8cbd725bc7973fcbe1943ea74b01554f131d655d..96b9ad2f4f15a4013603f5eff92c51453a142685 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -121,6 +121,7 @@
#include "chrome/browser/chromeos/extensions/media_player_event_router.h"
#include "chrome/browser/chromeos/input_method/input_method_manager.h"
#include "chrome/browser/extensions/api/input_ime/input_ime_api.h"
+#include "content/public/browser/storage_partition.h"
#include "webkit/fileapi/file_system_context.h"
#include "webkit/fileapi/file_system_mount_point_provider.h"
#endif
@@ -1107,10 +1108,12 @@ void ExtensionService::NotifyExtensionUnloaded(
profile_, extension->GetChromeURLOverrides());
#if defined(OS_CHROMEOS)
- // Revoke external file access to
- if (BrowserContext::GetFileSystemContext(profile_) &&
- BrowserContext::GetFileSystemContext(profile_)->external_provider()) {
- BrowserContext::GetFileSystemContext(profile_)->external_provider()->
+ // Revoke external file access to third party extensions.
+ fileapi::FileSystemContext* filesystem_context =
+ BrowserContext::GetDefaultStoragePartition(profile_)->
+ GetFileSystemContext();
+ if (filesystem_context && filesystem_context->external_provider()) {
+ filesystem_context->external_provider()->
RevokeAccessForExtension(extension->id());
}
« no previous file with comments | « chrome/browser/extensions/data_deleter.cc ('k') | chrome/browser/profiles/off_the_record_profile_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698