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

Unified Diff: chrome/browser/net/chrome_fraudulent_certificate_reporter.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: 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/net/chrome_fraudulent_certificate_reporter.cc
diff --git a/chrome/browser/net/chrome_fraudulent_certificate_reporter.cc b/chrome/browser/net/chrome_fraudulent_certificate_reporter.cc
index 753154c1d47de6fc371a80bf3c54f16db7066177..2a11993458553931b7778c272b30003b4bb529f9 100644
--- a/chrome/browser/net/chrome_fraudulent_certificate_reporter.cc
+++ b/chrome/browser/net/chrome_fraudulent_certificate_reporter.cc
@@ -56,7 +56,7 @@ static std::string BuildReport(
net::URLRequest* ChromeFraudulentCertificateReporter::CreateURLRequest(
net::URLRequestContext* context) {
- net::URLRequest* request = new net::URLRequest(upload_url_, this, context);
+ net::URLRequest* request = context->CreateRequest(upload_url_, this);
request->set_load_flags(net::LOAD_DO_NOT_SEND_COOKIES |
net::LOAD_DO_NOT_SAVE_COOKIES);
return request;
« no previous file with comments | « no previous file | chrome/browser/net/connection_tester.cc » ('j') | content/browser/renderer_host/resource_dispatcher_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698