| Index: chrome/browser/tab_contents/render_view_context_menu.cc
|
| diff --git a/chrome/browser/tab_contents/render_view_context_menu.cc b/chrome/browser/tab_contents/render_view_context_menu.cc
|
| index c1e64936f229b59806f15252b5d8f86c2daae08c..80d9677d8ad77931f11c9f543022f02e874c190c 100644
|
| --- a/chrome/browser/tab_contents/render_view_context_menu.cc
|
| +++ b/chrome/browser/tab_contents/render_view_context_menu.cc
|
| @@ -1343,12 +1343,13 @@ void RenderViewContextMenu::ExecuteCommand(int id, int event_flags) {
|
| const GURL& referrer =
|
| params_.frame_url.is_empty() ? params_.page_url : params_.frame_url;
|
| const GURL& url = params_.link_url;
|
| - content::DownloadSaveInfo save_info;
|
| - save_info.prompt_for_save_location = true;
|
| + scoped_ptr<content::DownloadSaveInfo> save_info(
|
| + new content::DownloadSaveInfo());
|
| + save_info->prompt_for_save_location = true;
|
| DownloadManager* dlm = BrowserContext::GetDownloadManager(profile_);
|
| scoped_ptr<DownloadUrlParameters> dl_params(
|
| DownloadUrlParameters::FromWebContents(
|
| - source_web_contents_, url, save_info));
|
| + source_web_contents_, url, save_info.Pass()));
|
| dl_params->set_referrer(
|
| content::Referrer(referrer, params_.referrer_policy));
|
| dl_params->set_referrer_encoding(params_.frame_charset);
|
| @@ -1363,8 +1364,9 @@ void RenderViewContextMenu::ExecuteCommand(int id, int event_flags) {
|
| const GURL& referrer =
|
| params_.frame_url.is_empty() ? params_.page_url : params_.frame_url;
|
| const GURL& url = params_.src_url;
|
| - content::DownloadSaveInfo save_info;
|
| - save_info.prompt_for_save_location = true;
|
| + scoped_ptr<content::DownloadSaveInfo> save_info(
|
| + new content::DownloadSaveInfo());
|
| + save_info->prompt_for_save_location = true;
|
| int64 post_id = -1;
|
| if (url == source_web_contents_->GetURL()) {
|
| const NavigationEntry* entry =
|
| @@ -1375,7 +1377,7 @@ void RenderViewContextMenu::ExecuteCommand(int id, int event_flags) {
|
| DownloadManager* dlm = BrowserContext::GetDownloadManager(profile_);
|
| scoped_ptr<DownloadUrlParameters> dl_params(
|
| DownloadUrlParameters::FromWebContents(
|
| - source_web_contents_, url, save_info));
|
| + source_web_contents_, url, save_info.Pass()));
|
| dl_params->set_referrer(
|
| content::Referrer(referrer, params_.referrer_policy));
|
| dl_params->set_post_id(post_id);
|
|
|