| 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 3f94b6f0c49baffc566dbf07d6c222e048d98c4c..a3e9e3eea07497f7f49da3e881a6659f2f9efc43 100644
|
| --- a/net/cert/internal/trust_store_in_memory.cc
|
| +++ b/net/cert/internal/trust_store_in_memory.cc
|
| @@ -27,4 +27,12 @@ void TrustStoreInMemory::FindTrustAnchorsForCert(
|
| matches->push_back(it->second);
|
| }
|
|
|
| +bool TrustStoreInMemory::Contains(const TrustAnchor* anchor) const {
|
| + for (const auto& it : anchors_) {
|
| + if (anchor == it.second.get())
|
| + return true;
|
| + }
|
| + return false;
|
| +}
|
| +
|
| } // namespace net
|
|
|