Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Unified Diff: net/cert/internal/trust_store_in_memory.cc

Issue 2755483008: Add initial CertVerifyProcBuiltin. (Closed)
Patch Set: make dtor virtual Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698