diff options
Diffstat (limited to 'chrome/browser/extensions/crx_installer.cc')
-rw-r--r-- | chrome/browser/extensions/crx_installer.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/extensions/crx_installer.cc b/chrome/browser/extensions/crx_installer.cc index ddc1404..b24a02d 100644 --- a/chrome/browser/extensions/crx_installer.cc +++ b/chrome/browser/extensions/crx_installer.cc @@ -201,6 +201,12 @@ void CrxInstaller::ConfirmInstall() { return; } + if (!frontend_->extension_prefs()->IsExtensionAllowedByPolicy( + extension_->id())) { + ReportFailureFromUIThread("This extension is blacklisted by admin policy."); + return; + } + GURL overlapping_url; Extension* overlapping_extension = frontend_->GetExtensionByOverlappingWebExtent(extension_->web_extent()); |