Index: chrome/browser/extensions/crx_installer.cc |
diff --git a/chrome/browser/extensions/crx_installer.cc b/chrome/browser/extensions/crx_installer.cc |
index 656d069b58c6d2a7218e06c165ea00d3241d3285..922b1e83c85cedb9ab76bb8e99e3ea87fe79543d 100644 |
--- a/chrome/browser/extensions/crx_installer.cc |
+++ b/chrome/browser/extensions/crx_installer.cc |
@@ -83,7 +83,8 @@ CrxInstaller::CrxInstaller(base::WeakPtr<ExtensionService> frontend_weak, |
apps_require_extension_mime_type_(false), |
allow_silent_install_(false), |
install_cause_(extension_misc::INSTALL_CAUSE_UNSET), |
- creation_flags_(Extension::NO_FLAGS) { |
+ creation_flags_(Extension::NO_FLAGS), |
+ allow_off_store_install_(false) { |
if (!approval) |
return; |
@@ -192,6 +193,7 @@ bool CrxInstaller::AllowInstall(const Extension* extension, |
if (!extension->is_theme() && |
!extensions::switch_utils::IsOffStoreInstallEnabled() && |
+ !allow_off_store_install_ && |
!is_gallery_install()) { |
*error = l10n_util::GetStringUTF16( |
IDS_EXTENSION_INSTALL_DISALLOWED_ON_SITE); |