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

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

Issue 10356052: Disable off-store extension installs by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: argh 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/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) {
« no previous file with comments | « no previous file | chrome/browser/download/download_browsertest.cc » ('j') | chrome/browser/extensions/webstore_installer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698