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

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: 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/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..590099a1fc51a478ccbe8cd1bf75624c1c205202 100644
--- a/chrome/browser/download/download_shelf_context_menu.cc
+++ b/chrome/browser/download/download_shelf_context_menu.cc
@@ -53,9 +53,7 @@ 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()) ||
Aaron Boodman 2012/05/24 09:08:53 It's no longer important to prevent extensions fro
- extensions::switch_utils::IsOffStoreInstallEnabled());
+ !download_item_->IsTemporary();
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

Powered by Google App Engine
This is Rietveld 408576698