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

Unified Diff: chrome/browser/download/download_shelf_context_menu.cc

Issue 10452009: Improve the UI for disabling off-store extension install. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: derp 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
« no previous file with comments | « chrome/browser/download/download_item_model.cc ('k') | chrome/browser/extensions/crx_installer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_shelf_context_menu.cc
diff --git a/chrome/browser/download/download_shelf_context_menu.cc b/chrome/browser/download/download_shelf_context_menu.cc
index d73e3ef8bef1284e988ca8b5b64dcb4f0647eb58..a950017d2e4ce143d5d43716eadb2d04d8883262 100644
--- a/chrome/browser/download/download_shelf_context_menu.cc
+++ b/chrome/browser/download/download_shelf_context_menu.cc
@@ -53,15 +53,13 @@ bool DownloadShelfContextMenu::IsCommandIdEnabled(int command_id) const {
!download_item_->IsTemporary();
case OPEN_WHEN_COMPLETE:
return download_item_->CanShowInFolder() &&
- !download_item_->IsTemporary() &&
- (!Extension::IsExtension(download_item_->GetTargetName()) ||
- extensions::switch_utils::IsOffStoreInstallEnabled());
+ !download_item_->IsTemporary();
asanka 2012/05/25 18:28:18 The confusingly named OPEN_WHEN_COMPLETE option me
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
// exclude extensions.
return download_item_->CanOpenDownload() &&
- !Extension::IsExtension(download_item_->GetTargetName()) &&
+ !download_crx_util::IsExtensionDownload(*download_item_) &&
!download_item_->IsTemporary();
case CANCEL:
return download_item_->IsPartialDownload();
« no previous file with comments | « chrome/browser/download/download_item_model.cc ('k') | chrome/browser/extensions/crx_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698