| 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 f709f9c07b0c66e81e0a1e04381d6a413b7fdcb7..8fa5bed3134a79428e9c69f50fab18492acd3ff7 100644
|
| --- a/chrome/browser/download/download_crx_util.cc
|
| +++ b/chrome/browser/download/download_crx_util.cc
|
| @@ -61,21 +61,21 @@ scoped_refptr<CrxInstaller> OpenChromeExtension(
|
| installer->set_delete_source(true);
|
|
|
| if (UserScript::IsURLUserScript(download_item.GetURL(),
|
| - download_item.mime_type())) {
|
| - installer->InstallUserScript(download_item.full_path(),
|
| + download_item.GetMimeType())) {
|
| + installer->InstallUserScript(download_item.GetFullPath(),
|
| download_item.GetURL());
|
| } else {
|
| bool is_gallery_download = service->IsDownloadFromGallery(
|
| - download_item.GetURL(), download_item.referrer_url());
|
| - installer->set_original_mime_type(download_item.original_mime_type());
|
| + download_item.GetURL(), download_item.GetReferrerUrl());
|
| + 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.original_url());
|
| + installer->set_original_download_url(download_item.GetOriginalUrl());
|
| installer->set_allow_silent_install(is_gallery_download);
|
| installer->set_install_cause(extension_misc::INSTALL_CAUSE_USER_DOWNLOAD);
|
| - installer->InstallCrx(download_item.full_path());
|
| + installer->InstallCrx(download_item.GetFullPath());
|
| }
|
|
|
| return installer;
|
|
|