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

Unified Diff: net/cert/nss_profile_filter_chromeos.cc

Issue 144423007: Make NSSCertDatabase::ListCerts work async on a worker thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: aa Created 6 years, 11 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/nss_profile_filter_chromeos.cc
diff --git a/net/cert/nss_profile_filter_chromeos.cc b/net/cert/nss_profile_filter_chromeos.cc
index 48718174e8b37a4f0626c95fce7340034e795bd5..654d64558411b0226a9a2db054f6b164f5bacf0d 100644
--- a/net/cert/nss_profile_filter_chromeos.cc
+++ b/net/cert/nss_profile_filter_chromeos.cc
@@ -4,9 +4,8 @@
#include "net/cert/nss_profile_filter_chromeos.h"
-#include "base/bind.h"
-#include "base/callback.h"
#include "base/strings/stringprintf.h"
+#include "net/cert/x509_certificate.h"
namespace net {
@@ -92,23 +91,5 @@ bool NSSProfileFilterChromeOS::IsCertAllowed(
return false;
}
-NSSProfileFilterChromeOS::CertNotAllowedForProfilePredicate::
- CertNotAllowedForProfilePredicate(const NSSProfileFilterChromeOS& filter)
- : filter_(filter) {}
-
-bool NSSProfileFilterChromeOS::CertNotAllowedForProfilePredicate::operator()(
- const scoped_refptr<X509Certificate>& cert) const {
- return !filter_.IsCertAllowed(cert);
-}
-
-NSSProfileFilterChromeOS::ModuleNotAllowedForProfilePredicate::
- ModuleNotAllowedForProfilePredicate(const NSSProfileFilterChromeOS& filter)
- : filter_(filter) {}
-
-bool NSSProfileFilterChromeOS::ModuleNotAllowedForProfilePredicate::operator()(
- const scoped_refptr<CryptoModule>& module) const {
- return !filter_.IsModuleAllowed(module->os_module_handle());
-}
-
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698