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

Unified Diff: chrome/browser/plugin_installer.cc

Issue 10910044: Removed calls to URLRequest::URLRequest in favor of URLRequestContext::CreateRequest (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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: chrome/browser/plugin_installer.cc
diff --git a/chrome/browser/plugin_installer.cc b/chrome/browser/plugin_installer.cc
index c85e4fa47c5ad24361d50330958f7daf82caadeb..e6449eb87177eaf107301a7ade9ab91f7e91e6a7 100644
--- a/chrome/browser/plugin_installer.cc
+++ b/chrome/browser/plugin_installer.cc
@@ -26,6 +26,7 @@
#include "content/public/browser/resource_dispatcher_host.h"
#include "content/public/browser/web_contents.h"
#include "net/url_request/url_request.h"
+#include "net/url_request/url_request_context.h"
#include "webkit/plugins/npapi/plugin_group.h"
using content::BrowserContext;
@@ -45,10 +46,8 @@ void BeginDownload(
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
ResourceDispatcherHost* rdh = ResourceDispatcherHost::Get();
- scoped_ptr<net::URLRequest> request(new net::URLRequest(
- url,
- NULL,
- resource_context->GetRequestContext()));
+ scoped_ptr<net::URLRequest> request(
+ resource_context->GetRequestContext()->CreateRequest(url, NULL));
net::Error error = rdh->BeginDownload(
request.Pass(),
false, // is_content_initiated

Powered by Google App Engine
This is Rietveld 408576698