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

Unified Diff: chrome/browser/net/http_pipelining_compatibility_client.cc

Issue 10870060: Removed calls to URLRequest::URLRequest in favor of URLRequestContext::CreateRequest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged 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
« no previous file with comments | « chrome/browser/net/connection_tester.cc ('k') | chrome/browser/plugin_installer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/http_pipelining_compatibility_client.cc
diff --git a/chrome/browser/net/http_pipelining_compatibility_client.cc b/chrome/browser/net/http_pipelining_compatibility_client.cc
index b13bed1e39aecff9d78a9cfc219edd7c71784402..1cfe5cc0ade8a0bc9d69d4bc5ed0cb6f496c36ed 100644
--- a/chrome/browser/net/http_pipelining_compatibility_client.cc
+++ b/chrome/browser/net/http_pipelining_compatibility_client.cc
@@ -21,6 +21,7 @@
#include "net/http/http_version.h"
#include "net/proxy/proxy_config.h"
#include "net/proxy/proxy_service.h"
+#include "net/url_request/url_request_context.h"
#include "net/url_request/url_request_context_getter.h"
namespace chrome_browser_net {
@@ -88,9 +89,8 @@ Request::Request(int request_id,
net::URLRequestContext* url_request_context)
: delegate_(delegate),
request_id_(request_id),
- url_request_(new net::URLRequest(GURL(base_url + info.filename),
- this,
- url_request_context)),
+ url_request_(url_request_context->CreateRequest(
+ GURL(base_url + info.filename), this)),
info_(info),
response_code_(0) {
url_request_->set_load_flags(net::LOAD_BYPASS_CACHE |
« no previous file with comments | « chrome/browser/net/connection_tester.cc ('k') | chrome/browser/plugin_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698