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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 11028131: Shift passage of FileStream in downloads system to be by scoped_ptr<>. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporated Al's comments. Created 8 years, 2 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
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 6ef49c9c3de79d833482fb65f1a409846caedb08..01034b0f3e620c62ffa55483790cea9b24e2b930 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -3359,10 +3359,11 @@ void WebContentsImpl::SaveURL(const GURL& url,
if (entry)
post_id = entry->GetPostID();
}
- 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;
scoped_ptr<DownloadUrlParameters> params(
- DownloadUrlParameters::FromWebContents(this, url, save_info));
+ DownloadUrlParameters::FromWebContents(this, url, save_info.Pass()));
params->set_referrer(referrer);
params->set_post_id(post_id);
params->set_prefer_cache(true);
« no previous file with comments | « content/browser/web_contents/web_contents_drag_win.cc ('k') | content/browser/web_contents/web_drag_source_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698