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

Unified Diff: content/browser/debugger/devtools_http_handler_impl.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
Index: content/browser/debugger/devtools_http_handler_impl.cc
diff --git a/content/browser/debugger/devtools_http_handler_impl.cc b/content/browser/debugger/devtools_http_handler_impl.cc
index aacf2ea3f05df2c0440017ee50fe746029450b22..7147ce6f00e39c3a208104e139d679c9f0751b0e 100644
--- a/content/browser/debugger/devtools_http_handler_impl.cc
+++ b/content/browser/debugger/devtools_http_handler_impl.cc
@@ -249,13 +249,10 @@ void DevToolsHttpHandlerImpl::OnHttpRequest(
return;
}
std::string base_url = delegate_->GetFrontendResourcesBaseURL();
- request = new net::URLRequest(GURL(base_url + filename),
- this,
- request_context);
+ request = request_context->CreateRequest(GURL(base_url + filename), this);
} else if (info.path.find("/thumb/") == 0) {
- request = new net::URLRequest(GURL("chrome:/" + info.path),
- this,
- request_context);
+ request = request_context->CreateRequest(
+ GURL("chrome:/" + info.path), this);
} else {
server_->Send404(connection_id);
return;

Powered by Google App Engine
This is Rietveld 408576698