Index: chrome/browser/devtools/devtools_network_transaction.cc |
diff --git a/chrome/browser/devtools/devtools_network_transaction.cc b/chrome/browser/devtools/devtools_network_transaction.cc |
index 982bfab76dda4c1b0d3d04c5e1949f1d55ad04a9..a4d1626d1559c192fc22c69d0774dfe06af8f471 100644 |
--- a/chrome/browser/devtools/devtools_network_transaction.cc |
+++ b/chrome/browser/devtools/devtools_network_transaction.cc |
@@ -168,18 +168,18 @@ int DevToolsNetworkTransaction::RestartIgnoringLastError( |
} |
int DevToolsNetworkTransaction::RestartWithCertificate( |
- net::X509Certificate* client_cert, |
- net::SSLPrivateKey* client_private_key, |
+ scoped_refptr<net::X509Certificate> client_cert, |
+ scoped_refptr<net::SSLPrivateKey> client_private_key, |
const net::CompletionCallback& callback) { |
if (CheckFailed()) |
return net::ERR_INTERNET_DISCONNECTED; |
if (!interceptor_) { |
return network_transaction_->RestartWithCertificate( |
- client_cert, client_private_key, callback); |
+ std::move(client_cert), std::move(client_private_key), callback); |
} |
int result = network_transaction_->RestartWithCertificate( |
- client_cert, client_private_key, |
+ std::move(client_cert), std::move(client_private_key), |
base::Bind(&DevToolsNetworkTransaction::IOCallback, |
base::Unretained(this), callback, true)); |
return Throttle(callback, true, result); |