Index: components/cast_certificate/cast_cert_validator_test_helpers.cc |
diff --git a/components/cast_certificate/cast_cert_validator_test_helpers.cc b/components/cast_certificate/cast_cert_validator_test_helpers.cc |
index d9ade267ccd88ba0e0ddc5ac7014b1e25d58ad9b..4a41ed2b0d3a35dc75ad67291da17e77caa13497 100644 |
--- a/components/cast_certificate/cast_cert_validator_test_helpers.cc |
+++ b/components/cast_certificate/cast_cert_validator_test_helpers.cc |
@@ -93,9 +93,7 @@ std::unique_ptr<net::TrustStoreInMemory> CreateTrustStoreFromFile( |
scoped_refptr<net::ParsedCertificate> cert(net::ParsedCertificate::Create( |
net::x509_util::CreateCryptoBuffer(trusted_root), {}, &errors)); |
EXPECT_TRUE(cert) << errors.ToDebugString(); |
- scoped_refptr<net::TrustAnchor> anchor = |
- net::TrustAnchor::CreateFromCertificateWithConstraints(std::move(cert)); |
- trust_store->AddTrustAnchor(std::move(anchor)); |
+ trust_store->AddTrustAnchorWithConstraints(cert); |
} |
return trust_store; |
} |