summaryrefslogtreecommitdiffstats
path: root/chrome/browser/download/download_shelf_context_menu.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/download/download_shelf_context_menu.cc')
-rw-r--r--chrome/browser/download/download_shelf_context_menu.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/browser/download/download_shelf_context_menu.cc b/chrome/browser/download/download_shelf_context_menu.cc
index 952bc7d..ddc9c9d 100644
--- a/chrome/browser/download/download_shelf_context_menu.cc
+++ b/chrome/browser/download/download_shelf_context_menu.cc
@@ -11,7 +11,6 @@
#include "chrome/browser/safe_browsing/download_protection_service.h"
#include "chrome/browser/safe_browsing/safe_browsing_service.h"
#include "chrome/common/extensions/extension.h"
-#include "chrome/common/extensions/extension_switch_utils.h"
#include "content/public/browser/download_item.h"
#include "content/public/browser/download_manager.h"
#include "grit/generated_resources.h"
@@ -51,7 +50,7 @@ bool DownloadShelfContextMenu::IsCommandIdEnabled(int command_id) const {
return download_item_->CanShowInFolder() &&
!download_item_->IsTemporary() &&
(!Extension::IsExtension(download_item_->GetTargetName()) ||
- extensions::switch_utils::IsOffStoreInstallEnabled());
+ download_crx_util::ShouldOpenExtensionDownload(*download_item_));
case ALWAYS_OPEN_TYPE:
// For temporary downloads, the target filename might be a temporary
// filename. Don't base an "Always open" decision based on it. Also