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

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

Issue 2453093004: Remove dependence on a message loop for net::PathBuilder. (Closed)
Patch Set: remove unnecessary forward decl Created 4 years, 1 month 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
« no previous file with comments | « net/cert/internal/trust_store_collection.h ('k') | net/cert/internal/trust_store_collection_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/internal/trust_store_collection.cc
diff --git a/net/cert/internal/trust_store_collection.cc b/net/cert/internal/trust_store_collection.cc
index dc35306eee2a206082ab0f72e4050d82c9a607ea..7e004ae1b726b195f7b0012cfba7ccf25c197dc6 100644
--- a/net/cert/internal/trust_store_collection.cc
+++ b/net/cert/internal/trust_store_collection.cc
@@ -9,29 +9,16 @@ namespace net {
TrustStoreCollection::TrustStoreCollection() = default;
TrustStoreCollection::~TrustStoreCollection() = default;
-void TrustStoreCollection::SetPrimaryTrustStore(TrustStore* store) {
- DCHECK(!primary_store_);
+void TrustStoreCollection::AddTrustStore(TrustStore* store) {
DCHECK(store);
- primary_store_ = store;
-}
-
-void TrustStoreCollection::AddTrustStoreSynchronousOnly(TrustStore* store) {
- DCHECK(store);
- sync_only_stores_.push_back(store);
+ stores_.push_back(store);
}
void TrustStoreCollection::FindTrustAnchorsForCert(
const scoped_refptr<ParsedCertificate>& cert,
- const TrustAnchorsCallback& callback,
- TrustAnchors* synchronous_matches,
- std::unique_ptr<Request>* out_req) const {
- if (primary_store_)
- primary_store_->FindTrustAnchorsForCert(cert, callback, synchronous_matches,
- out_req);
-
- for (auto* store : sync_only_stores_) {
- store->FindTrustAnchorsForCert(cert, TrustAnchorsCallback(),
- synchronous_matches, nullptr);
+ TrustAnchors* matches) const {
+ for (auto* store : stores_) {
+ store->FindTrustAnchorsForCert(cert, matches);
}
}
« no previous file with comments | « net/cert/internal/trust_store_collection.h ('k') | net/cert/internal/trust_store_collection_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698