Index: chrome/browser/extensions/webstore_installer.cc |
diff --git a/chrome/browser/extensions/webstore_installer.cc b/chrome/browser/extensions/webstore_installer.cc |
index 2ac133295cc43a949fce937bb600255beb12846c..3d21a8942609cdd052f64bcaacbb794440c695b2 100644 |
--- a/chrome/browser/extensions/webstore_installer.cc |
+++ b/chrome/browser/extensions/webstore_installer.cc |
@@ -345,8 +345,9 @@ void WebstoreInstaller::StartDownload(const FilePath& file) { |
return; |
} |
- content::DownloadSaveInfo save_info; |
- save_info.file_path = file; |
+ scoped_ptr<content::DownloadSaveInfo> save_info( |
+ new content::DownloadSaveInfo()); |
+ save_info->file_path = file; |
// The download url for the given extension is contained in |download_url_|. |
// We will navigate the current tab to this url to start the download. The |
@@ -355,7 +356,7 @@ void WebstoreInstaller::StartDownload(const FilePath& file) { |
download_util::INITIATED_BY_WEBSTORE_INSTALLER); |
scoped_ptr<DownloadUrlParameters> params( |
DownloadUrlParameters::FromWebContents( |
- controller_->GetWebContents(), download_url_, save_info)); |
+ controller_->GetWebContents(), download_url_, save_info.Pass())); |
if (controller_->GetActiveEntry()) |
params->set_referrer( |
content::Referrer(controller_->GetActiveEntry()->GetURL(), |