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 56c36135e8651256f39704df4a547bdd4e5f4f24..0564a14a548ba12dbe4c4eab5c387c65caa63653 100644 |
--- a/chrome/browser/download/chrome_download_manager_delegate.cc |
+++ b/chrome/browser/download/chrome_download_manager_delegate.cc |
@@ -97,7 +97,9 @@ bool ChromeDownloadManagerDelegate::IsExtensionDownload( |
return false; |
} |
- return download_crx_util::ShouldOpenExtensionDownload(*item); |
+ Profile* profile = Profile::FromBrowserContext(item->GetBrowserContext()); |
+ return download_crx_util::ShouldOpenExtensionDownload( |
+ profile->GetExtensionService(), *item); |
} |
void ChromeDownloadManagerDelegate::SetDownloadManager(DownloadManager* dm) { |