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

Unified Diff: components/cert_database/cert_database_service_io_part_linux.cc

Issue 419013003: Replace c/b/nss_context by a KeyedService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Flattened components/cert_database folders. Created 6 years, 1 month 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
« no previous file with comments | « components/cert_database/cert_database_service_io_part_linux.h ('k') | components/components.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cert_database/cert_database_service_io_part_linux.cc
diff --git a/components/cert_database/cert_database_service_io_part_linux.cc b/components/cert_database/cert_database_service_io_part_linux.cc
new file mode 100644
index 0000000000000000000000000000000000000000..3b2e9c4476762135d6871bfb367c5d0ff12e4cef
--- /dev/null
+++ b/components/cert_database/cert_database_service_io_part_linux.cc
@@ -0,0 +1,28 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/cert_database/cert_database_service_io_part_linux.h"
+
+#include "crypto/nss_util_internal.h"
+#include "net/cert/nss_cert_database.h"
+
+namespace cert_database {
+
+CertDatabaseServiceIOPartLinux::CertDatabaseServiceIOPartLinux() {
+}
+
+CertDatabaseServiceIOPartLinux::~CertDatabaseServiceIOPartLinux() {
+}
+
+void CertDatabaseServiceIOPartLinux::Init() {
+ CertDatabaseServiceIOPart::Init();
+
+ SetNSSCertDatabase(make_scoped_ptr(new net::NSSCertDatabase(
+ crypto::ScopedPK11Slot(
+ crypto::GetPersistentNSSKeySlot()) /* public slot */,
+ crypto::ScopedPK11Slot(
+ crypto::GetPersistentNSSKeySlot()) /* private slot */)));
+}
+
+} // namespace cert_database
« no previous file with comments | « components/cert_database/cert_database_service_io_part_linux.h ('k') | components/components.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698