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

Unified Diff: chrome/browser/certificate_manager_model.cc

Issue 10916094: Move the NSS functions out of CertDatabase into a new NSSCertDatabase class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 8 years, 3 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: chrome/browser/certificate_manager_model.cc
diff --git a/chrome/browser/certificate_manager_model.cc b/chrome/browser/certificate_manager_model.cc
index e44a0b6dfd6b5f38eb393f8e317e7a4685380319..d048427daf0e987c7a93c7dc69696fd36181411d 100644
--- a/chrome/browser/certificate_manager_model.cc
+++ b/chrome/browser/certificate_manager_model.cc
@@ -121,8 +121,8 @@ int CertificateManagerModel::ImportFromPKCS12(net::CryptoModule* module,
bool CertificateManagerModel::ImportCACerts(
const net::CertificateList& certificates,
- net::CertDatabase::TrustBits trust_bits,
- net::CertDatabase::ImportCertFailureList* not_imported) {
+ net::NSSCertDatabase::TrustBits trust_bits,
+ net::NSSCertDatabase::ImportCertFailureList* not_imported) {
bool result = cert_db_.ImportCACerts(certificates, trust_bits, not_imported);
if (result && not_imported->size() != certificates.size())
Refresh();
@@ -131,8 +131,8 @@ bool CertificateManagerModel::ImportCACerts(
bool CertificateManagerModel::ImportServerCert(
const net::CertificateList& certificates,
- net::CertDatabase::TrustBits trust_bits,
- net::CertDatabase::ImportCertFailureList* not_imported) {
+ net::NSSCertDatabase::TrustBits trust_bits,
+ net::NSSCertDatabase::ImportCertFailureList* not_imported) {
bool result = cert_db_.ImportServerCert(certificates, trust_bits,
not_imported);
if (result && not_imported->size() != certificates.size())
@@ -143,7 +143,7 @@ bool CertificateManagerModel::ImportServerCert(
bool CertificateManagerModel::SetCertTrust(
const net::X509Certificate* cert,
net::CertType type,
- net::CertDatabase::TrustBits trust_bits) {
+ net::NSSCertDatabase::TrustBits trust_bits) {
return cert_db_.SetCertTrust(cert, type, trust_bits);
}

Powered by Google App Engine
This is Rietveld 408576698