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) { |