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

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

Issue 10266015: Add the --disable-off-store-extension-install switch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixy fix Created 8 years, 8 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 | « no previous file | chrome/browser/download/download_crx_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/chrome_download_manager_delegate.cc
diff --git a/chrome/browser/download/chrome_download_manager_delegate.cc b/chrome/browser/download/chrome_download_manager_delegate.cc
index e069eddcbe8445310dd4b054cd0f2370aa27cdcd..5b2a0e97703a293f6d1697f4a4f1f2a791259e11 100644
--- a/chrome/browser/download/chrome_download_manager_delegate.cc
+++ b/chrome/browser/download/chrome_download_manager_delegate.cc
@@ -92,8 +92,12 @@ bool ChromeDownloadManagerDelegate::IsExtensionDownload(
if (item->PromptUserForSaveLocation())
return false;
- return (item->GetMimeType() == Extension::kMimeType) ||
- UserScript::IsURLUserScript(item->GetURL(), item->GetMimeType());
+ if ((item->GetMimeType() != Extension::kMimeType) &&
+ !UserScript::IsURLUserScript(item->GetURL(), item->GetMimeType())) {
+ return false;
+ }
+
+ return download_crx_util::ShouldOpenExtensionDownload(*item);
}
void ChromeDownloadManagerDelegate::SetDownloadManager(DownloadManager* dm) {
« no previous file with comments | « no previous file | chrome/browser/download/download_crx_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698