Index: components/cast_certificate/cast_cert_validator.cc |
diff --git a/components/cast_certificate/cast_cert_validator.cc b/components/cast_certificate/cast_cert_validator.cc |
index 18609aff085b93e4bebb7f4d4bc1c237d07ba395..afd7b6449714ce7f84ada1c0b33f4df3809de7a8 100644 |
--- a/components/cast_certificate/cast_cert_validator.cc |
+++ b/components/cast_certificate/cast_cert_validator.cc |
@@ -74,9 +74,7 @@ class CastTrustStore { |
&errors); |
CHECK(cert) << errors.ToDebugString(); |
// Enforce pathlen constraints and policies defined on the root certificate. |
- scoped_refptr<net::TrustAnchor> anchor = |
- net::TrustAnchor::CreateFromCertificateWithConstraints(std::move(cert)); |
- store_.AddTrustAnchor(std::move(anchor)); |
+ store_.AddTrustAnchorWithConstraints(std::move(cert)); |
} |
net::TrustStoreInMemory store_; |