commit | 1c4b6d0109419cd40861a4d9a7a9f1878f337b88 | [log] [tgz] |
---|---|---|
author | David Benjamin <[email protected]> | Mon Jul 08 17:12:57 2019 |
committer | Commit Bot <[email protected]> | Mon Jul 08 17:12:57 2019 |
tree | cfe9a092c60f04f01d0a1e1a322853c1b2e5e85a | |
parent | 5d8d2005685c5c5cbc05abbad763f997c78f23fb [diff] [blame] |
Switch SSLCertRequestInfo creations to MakeRefCounted (Also get a net::HttpResponseHeader that I noticed along the way.) Slowly trim away at all the bare news in the codebase. Bug: none Change-Id: Icb40949dbf2f7d4d7b1538d139e8f3b0d7d449f3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1684297 Reviewed-by: Richard Coles <[email protected]> Reviewed-by: Nasko Oskov <[email protected]> Reviewed-by: Nico Weber <[email protected]> Reviewed-by: Eric Roman <[email protected]> Commit-Queue: David Benjamin <[email protected]> Cr-Commit-Position: refs/heads/master@{#675265}
diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc index b9cfb31c..4e86490 100644 --- a/net/http/http_network_transaction.cc +++ b/net/http/http_network_transaction.cc
@@ -1060,7 +1060,7 @@ } else if (result == ERR_SSL_CLIENT_AUTH_CERT_NEEDED) { DCHECK(stream_.get()); DCHECK(IsSecureRequest()); - response_.cert_request_info = new SSLCertRequestInfo; + response_.cert_request_info = base::MakeRefCounted<SSLCertRequestInfo>(); stream_->GetSSLCertRequestInfo(response_.cert_request_info.get()); result = HandleCertificateRequest(result); if (result == OK)