1 // Copyright (c) 2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "base/nss_init.h"
9 #include "base/logging.h"
10 #include "base/singleton.h"
14 class NSSInitSingleton
{
17 CHECK(NSS_NoDB_Init(".") == SECSuccess
);
21 SECStatus status
= NSS_Shutdown();
22 DCHECK(status
== SECSuccess
);
30 void EnsureNSSInit() {
31 Singleton
<NSSInitSingleton
>::get();