| Index: chrome/browser/extensions/crx_installer.cc
|
| diff --git a/chrome/browser/extensions/crx_installer.cc b/chrome/browser/extensions/crx_installer.cc
|
| index a7137a91b415c3ee67d23a44c082b7b5cf549e12..a4a1c13ce0e89279e412d39d7de87d26feecec10 100644
|
| --- a/chrome/browser/extensions/crx_installer.cc
|
| +++ b/chrome/browser/extensions/crx_installer.cc
|
| @@ -98,7 +98,7 @@ CrxInstaller::CrxInstaller(base::WeakPtr<ExtensionService> frontend_weak,
|
| allow_silent_install_(false),
|
| install_cause_(extension_misc::INSTALL_CAUSE_UNSET),
|
| creation_flags_(Extension::NO_FLAGS),
|
| - allow_off_store_install_(false) {
|
| + off_store_install_allow_reason_(OffStoreInstallDisallowed) {
|
| if (!approval)
|
| return;
|
|
|
| @@ -260,9 +260,12 @@ bool CrxInstaller::AllowInstall(const Extension* extension,
|
| if (is_gallery_install()) {
|
| UMA_HISTOGRAM_ENUMERATION(kHistogramName, OnStoreInstall,
|
| NumOffStoreInstallDecision);
|
| - } else if (allow_off_store_install_) {
|
| + } else if (off_store_install_allow_reason_ != OffStoreInstallDisallowed) {
|
| UMA_HISTOGRAM_ENUMERATION(kHistogramName, OffStoreInstallAllowed,
|
| NumOffStoreInstallDecision);
|
| + UMA_HISTOGRAM_ENUMERATION("Extensions.OffStoreInstallAllowReason",
|
| + off_store_install_allow_reason_,
|
| + NumOffStoreInstallAllowReasons);
|
| } else {
|
| UMA_HISTOGRAM_ENUMERATION(kHistogramName, OffStoreInstallDisallowed,
|
| NumOffStoreInstallDecision);
|
|
|