| Index: net/base/cert_database_nss.cc
|
| ===================================================================
|
| --- net/base/cert_database_nss.cc (revision 43235)
|
| +++ net/base/cert_database_nss.cc (working copy)
|
| @@ -16,11 +16,12 @@
|
| #include "base/scoped_ptr.h"
|
| #include "base/nss_util.h"
|
| #include "net/base/net_errors.h"
|
| +#include "net/base/x509_certificate.h"
|
|
|
| namespace net {
|
|
|
| CertDatabase::CertDatabase() {
|
| - Init();
|
| + base::EnsureNSSInit();
|
| }
|
|
|
| int CertDatabase::CheckUserCert(X509Certificate* cert_obj) {
|
| @@ -74,14 +75,10 @@
|
| NULL);
|
| if (!slot) {
|
| LOG(ERROR) << "Couldn't import user certificate.";
|
| - return ERR_ERR_ADD_USER_CERT_FAILED;
|
| + return ERR_ADD_USER_CERT_FAILED;
|
| }
|
| PK11_FreeSlot(slot);
|
| return OK;
|
| }
|
|
|
| -void CertDatabase::Init() {
|
| - base::EnsureNSSInit();
|
| -}
|
| -
|
| } // namespace net
|
|
|