Index: chrome/browser/extensions/extension_service.cc |
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc |
index 5c05c6cb9b16dba738258e193fd3224aac37b1c0..a8ad369ae81a31a0c9531b4d616cfc659ae8c01e 100644 |
--- a/chrome/browser/extensions/extension_service.cc |
+++ b/chrome/browser/extensions/extension_service.cc |
@@ -2207,7 +2207,7 @@ void ExtensionService::OnExtensionInstalled( |
// Unpacked extensions default to allowing file access, but if that has been |
// overridden, don't reset the value. |
- if (Extension::ShouldAlwaysAllowFileAccess(Extension::LOAD) && |
+ if (Extension::ShouldAlwaysAllowFileAccess(extension->location()) && |
!extension_prefs_->HasAllowFileAccessSetting(id)) { |
extension_prefs_->SetAllowFileAccess(id, true); |
} |