Index: net/cert/internal/trust_store_in_memory.cc |
diff --git a/net/cert/internal/trust_store_in_memory.cc b/net/cert/internal/trust_store_in_memory.cc |
index 86c80c9e23936b3dd9d6a618793f4377638e96dc..9563831374514545e5edacde6c7e7e0c95d9971c 100644 |
--- a/net/cert/internal/trust_store_in_memory.cc |
+++ b/net/cert/internal/trust_store_in_memory.cc |
@@ -19,12 +19,17 @@ void TrustStoreInMemory::AddTrustAnchor(scoped_refptr<TrustAnchor> anchor) { |
std::move(anchor))); |
} |
-void TrustStoreInMemory::FindTrustAnchorsByNormalizedName( |
- const der::Input& normalized_name, |
- TrustAnchors* matches) const { |
- auto range = anchors_.equal_range(normalized_name.AsStringPiece()); |
+void TrustStoreInMemory::FindTrustAnchorsForCert( |
+ const ParsedCertificate* cert, |
+ const TrustAnchorCallback& callback, |
+ TrustAnchors* out_matches, |
+ std::unique_ptr<Request>* out_req) const { |
+ auto range = anchors_.equal_range(cert->normalized_issuer().AsStringPiece()); |
for (auto it = range.first; it != range.second; ++it) |
- matches->push_back(it->second); |
+ out_matches->push_back(it->second); |
+ |
+ // TrustStoreInMemory never returns async results. |
+ *out_req = nullptr; |
} |
} // namespace net |