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

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

Issue 10448037: Fix regression when off-store install is disabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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
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);

Powered by Google App Engine
This is Rietveld 408576698