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

Unified Diff: content/browser/download/download_manager_impl.cc

Issue 10559036: Added URLRequestContext to constructor for URLRequest. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Updated unittests Created 8 years, 6 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/download/download_manager_impl.cc
diff --git a/content/browser/download/download_manager_impl.cc b/content/browser/download/download_manager_impl.cc
index 479d07a721db6b07fb36031a33486d0f12e8b95f..0dfcaac08fcb41531d14eb1405e98f8c2e4b63fa 100644
--- a/content/browser/download/download_manager_impl.cc
+++ b/content/browser/download/download_manager_impl.cc
@@ -34,6 +34,7 @@
#include "content/public/browser/notification_service.h"
#include "content/public/browser/notification_types.h"
#include "content/public/browser/render_process_host.h"
+#include "content/public/browser/resource_context.h"
#include "content/public/browser/web_contents_delegate.h"
#include "net/base/load_flags.h"
#include "net/base/upload_data.h"
@@ -57,7 +58,9 @@ void BeginDownload(content::DownloadUrlParameters* params) {
static_cast<content::ResourceDispatcherHostImpl*>(
params->resource_dispatcher_host());
scoped_ptr<net::URLRequest> request(new net::URLRequest(
- params->url(), resource_dispatcher_host));
+ params->url(),
+ resource_dispatcher_host,
+ params->resource_context()->GetRequestContext()));
request->set_referrer(params->referrer().url.spec());
webkit_glue::ConfigureURLRequestForReferrerPolicy(
request.get(), params->referrer().policy);

Powered by Google App Engine
This is Rietveld 408576698