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

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

Issue 666223005: Don't block shared_module extensions by the policy blacklist. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed FilePath Created 6 years, 2 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/crx_installer.cc ('k') | chrome/browser/policy/policy_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/standard_management_policy_provider.cc
diff --git a/chrome/browser/extensions/standard_management_policy_provider.cc b/chrome/browser/extensions/standard_management_policy_provider.cc
index 02ac0854827706237ce6abf66959c86fdfd87da9..b99fe65e10b0b9c444e2616976228c8cb1e4e646 100644
--- a/chrome/browser/extensions/standard_management_policy_provider.cc
+++ b/chrome/browser/extensions/standard_management_policy_provider.cc
@@ -76,6 +76,12 @@ bool StandardManagementPolicyProvider::UserMayLoad(
if (Manifest::IsComponentLocation(extension->location()))
return true;
+ // Shared modules are always allowed too: they only contain resources that
+ // are used by other extensions. The extension that depends on the shared
+ // module may be filtered by policy.
+ if (extension->is_shared_module())
+ return true;
+
ExtensionManagement::InstallationMode installation_mode =
settings_->GetInstallationMode(extension->id());
« no previous file with comments | « chrome/browser/extensions/crx_installer.cc ('k') | chrome/browser/policy/policy_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698