| Index: content/browser/web_contents/web_contents_impl.cc
|
| diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
| index 40858042159af4b77ecf5fed3c1b8fe3e34dc421..9e75423db70480a023a5e5991d551193f4d80224 100644
|
| --- a/content/browser/web_contents/web_contents_impl.cc
|
| +++ b/content/browser/web_contents/web_contents_impl.cc
|
| @@ -126,6 +126,7 @@ using content::DevToolsAgentHostRegistry;
|
| using content::DevToolsManagerImpl;
|
| using content::DownloadItem;
|
| using content::DownloadManager;
|
| +using content::DownloadUrlParameters;
|
| using content::GlobalRequestID;
|
| using content::HostZoomMap;
|
| using content::InterstitialPage;
|
| @@ -141,9 +142,9 @@ using content::RenderWidgetHost;
|
| using content::RenderWidgetHostView;
|
| using content::RenderWidgetHostViewPort;
|
| using content::ResourceDispatcherHostImpl;
|
| +using content::SSLStatus;
|
| using content::SessionStorageNamespace;
|
| using content::SiteInstance;
|
| -using content::SSLStatus;
|
| using content::UserMetricsAction;
|
| using content::WebContents;
|
| using content::WebContentsObserver;
|
| @@ -2613,14 +2614,11 @@ void WebContentsImpl::SaveURL(const GURL& url,
|
| }
|
| content::DownloadSaveInfo save_info;
|
| save_info.prompt_for_save_location = true;
|
| - dlm->DownloadUrl(url,
|
| - referrer,
|
| - "",
|
| - true, // prefer_cache
|
| - post_id,
|
| - save_info,
|
| - this,
|
| - DownloadManager::OnStartedCallback());
|
| + DownloadUrlParameters* params = DownloadUrlParameters::FromWebContents(
|
| + this, url, save_info);
|
| + params->set_referrer(referrer);
|
| + params->set_post_id(post_id);
|
| + dlm->DownloadUrl(params);
|
| }
|
|
|
| void WebContentsImpl::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) {
|
|
|