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

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

Issue 10559036: Added URLRequestContext to constructor for URLRequest. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merged with latest version Created 8 years, 6 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 29d817cc637b7b18e62f7c5c18797591fbb07b33..753154c1d47de6fc371a80bf3c54f16db7066177 100644
--- a/chrome/browser/net/chrome_fraudulent_certificate_reporter.cc
+++ b/chrome/browser/net/chrome_fraudulent_certificate_reporter.cc
@@ -54,8 +54,9 @@ static std::string BuildReport(
return out;
}
-net::URLRequest* ChromeFraudulentCertificateReporter::CreateURLRequest() {
- net::URLRequest* request = new net::URLRequest(upload_url_, this);
+net::URLRequest* ChromeFraudulentCertificateReporter::CreateURLRequest(
+ net::URLRequestContext* context) {
+ net::URLRequest* request = new net::URLRequest(upload_url_, this, context);
request->set_load_flags(net::LOAD_DO_NOT_SEND_COOKIES |
net::LOAD_DO_NOT_SAVE_COOKIES);
return request;
@@ -74,8 +75,7 @@ void ChromeFraudulentCertificateReporter::SendReport(
std::string report = BuildReport(hostname, ssl_info);
- net::URLRequest* url_request = CreateURLRequest();
- url_request->set_context(request_context_);
+ net::URLRequest* url_request = CreateURLRequest(request_context_);
url_request->set_method("POST");
url_request->AppendBytesToUpload(report.data(), report.size());

Powered by Google App Engine
This is Rietveld 408576698