    // No allowed install sites specified, disallow by default.
    if (!global_settings_->has_restricted_install_sources)
      return false;
---- a/chrome/browser/extensions/webstore_installer.cc
-+++ b/chrome/browser/extensions/webstore_installer.cc
-@@ -510,7 +510,8 @@ void WebstoreInstaller::OnDownloadUpdate
- 
-       // Only wait for other notifications if the download is really
-       // an extension.
--      if (!download_crx_util::IsExtensionDownload(*download)) {
-+      if (!download_crx_util::IsExtensionDownload(*download) ||
-+          download_crx_util::ShouldDownloadAsRegularFile()) {
-         ReportFailure(kInvalidDownloadError, FAILURE_REASON_OTHER);
-         return;
-       }

     {"enable-stacked-tab-strip",
      "Enable stacking in tab strip",
      "Forces tabs to be stacked in the tab strip. Otherwise, they follow default behavior.",
--- a/chrome/browser/download/chrome_download_manager_delegate.cc
+++ b/chrome/browser/download/chrome_download_manager_delegate.cc
@@ -558,6 +558,7 @@ bool ChromeDownloadManagerDelegate::Shou
     content::DownloadOpenDelayedCallback callback) {
 #if BUILDFLAG(ENABLE_EXTENSIONS)
   if (download_crx_util::IsExtensionDownload(*item) &&
+	  !download_crx_util::ShouldDownloadAsRegularFile() &&
       !extensions::WebstoreInstaller::GetAssociatedApproval(*item)) {
     scoped_refptr<extensions::CrxInstaller> crx_installer =
         download_crx_util::OpenChromeExtension(profile_, *item);
--- a/chrome/browser/download/download_crx_util.cc
+++ b/chrome/browser/download/download_crx_util.cc
@@ -6,6 +6,7 @@

 // Returns true if this is an extension download. This also considers user
 // scripts to be extension downloads, since we convert those automatically.
 bool IsExtensionDownload(const download::DownloadItem& download_item);
--- a/chrome/browser/download/download_target_determiner.cc
+++ b/chrome/browser/download/download_target_determiner.cc
@@ -1018,10 +1018,12 @@ DownloadConfirmationReason DownloadTarge
