Index: chrome/browser/plugin_installer.cc |
diff --git a/chrome/browser/plugin_installer.cc b/chrome/browser/plugin_installer.cc |
index 0205b60109ba1ef8564cf2192b76d5396768d1d8..6a76213f2c0077c99dd3a2a31ceb768ce5ca14aa 100644 |
--- a/chrome/browser/plugin_installer.cc |
+++ b/chrome/browser/plugin_installer.cc |
@@ -22,6 +22,7 @@ |
#include "content/public/browser/download_save_info.h" |
#include "content/public/browser/render_process_host.h" |
#include "content/public/browser/render_view_host.h" |
+#include "content/public/browser/resource_context.h" |
#include "content/public/browser/resource_dispatcher_host.h" |
#include "content/public/browser/web_contents.h" |
#include "net/url_request/url_request.h" |
@@ -44,7 +45,10 @@ void BeginDownload( |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
ResourceDispatcherHost* rdh = ResourceDispatcherHost::Get(); |
- scoped_ptr<net::URLRequest> request(new net::URLRequest(url, NULL)); |
+ scoped_ptr<net::URLRequest> request(new net::URLRequest( |
+ url, |
+ NULL, |
+ resource_context->GetRequestContext())); |
net::Error error = rdh->BeginDownload( |
request.Pass(), |
false, // is_content_initiated |