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

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

Issue 226023003: Create CrxInstaller directly in WebstoreInstaller (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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/extensions/crx_installer.h » ('j') | chrome/browser/extensions/crx_installer.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_crx_util.cc
diff --git a/chrome/browser/download/download_crx_util.cc b/chrome/browser/download/download_crx_util.cc
index bea0aaa11497c844291c218286ce44bcc78932ae..8c260249de36135d68fcd1442d0e91c466a2e30b 100644
--- a/chrome/browser/download/download_crx_util.cc
+++ b/chrome/browser/download/download_crx_util.cc
@@ -102,10 +102,9 @@ scoped_refptr<extensions::CrxInstaller> OpenChromeExtension(
WebstoreInstaller::GetAssociatedApproval(download_item) != NULL;
installer->set_original_mime_type(download_item.GetOriginalMimeType());
installer->set_apps_require_extension_mime_type(true);
- installer->set_download_url(download_item.GetURL());
installer->set_is_gallery_install(is_gallery_download);
if (is_gallery_download)
- installer->set_original_download_url(download_item.GetOriginalUrl());
+ installer->set_download_id(download_item.GetId());
installer->set_allow_silent_install(is_gallery_download);
installer->InstallCrx(download_item.GetFullPath());
}
« no previous file with comments | « no previous file | chrome/browser/extensions/crx_installer.h » ('j') | chrome/browser/extensions/crx_installer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698