Plumbing SSLPrivateKey (//net)
Plumbing SSLPrivateKey out of URLRequest to allow better unit testing.
BUG=394131
Review URL: https://codereview.chromium.org/1422573008
Cr-Commit-Position: refs/heads/master@{#360663}
diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc
index 13365df..0254a5a 100644
--- a/net/url_request/url_request_http_job.cc
+++ b/net/url_request/url_request_http_job.cc
@@ -1250,7 +1250,8 @@
}
void URLRequestHttpJob::ContinueWithCertificate(
- X509Certificate* client_cert) {
+ X509Certificate* client_cert,
+ SSLPrivateKey* client_private_key) {
DCHECK(transaction_.get());
DCHECK(!response_info_) << "should not have a response yet";
@@ -1262,7 +1263,8 @@
// be notifying our consumer asynchronously via OnStartCompleted.
SetStatus(URLRequestStatus(URLRequestStatus::IO_PENDING, 0));
- int rv = transaction_->RestartWithCertificate(client_cert, start_callback_);
+ int rv = transaction_->RestartWithCertificate(client_cert, client_private_key,
+ start_callback_);
if (rv == ERR_IO_PENDING)
return;