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

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: patch unittest fix from michael 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
Index: chrome/browser/extensions/extension_service.cc
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
index 6613da2d84bb8ba8303cffc5cb6b7777e86fdbad..22b8576664f67a57b8bd35705a3430950f528d4c 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -120,6 +120,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
@@ -1097,11 +1098,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()->
- RevokeAccessForExtension(extension->id());
+ // Revoke external file access to third party extensions.
+ fileapi::FileSystemContext* context =
+ BrowserContext::GetDefaultStoragePartition(profile_)->
+ GetFileSystemContext();
+ if (context && context->external_provider()) {
+ context->external_provider()->RevokeAccessForExtension(extension->id());
}
if (extension->input_components().size() > 0) {

Powered by Google App Engine
This is Rietveld 408576698