"Make Chrome your default browser" should now appear as a checkbox at the bottom...
[chromium-blink-merge.git] / base / nss_init.cc
blobc5c10c468217e9d4a5003ef63ab4444bd51105e7
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"
7 #include <nss.h>
9 #include "base/logging.h"
10 #include "base/singleton.h"
12 namespace {
14 class NSSInitSingleton {
15 public:
16 NSSInitSingleton() {
17 CHECK(NSS_NoDB_Init(".") == SECSuccess);
20 ~NSSInitSingleton() {
21 SECStatus status = NSS_Shutdown();
22 DCHECK(status == SECSuccess);
26 } // namespace
28 namespace base {
30 void EnsureNSSInit() {
31 Singleton<NSSInitSingleton>::get();
34 } // namespace base