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

Side by Side Diff: chrome/browser/net/nss_context_linux.cc

Issue 383593002: Add GetSystemNSSKeySlot, merge GetPrivateNSSKeySlot/GetPublicNSSKeySlot to GetPersistentNSSKeySlot. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: changes for comment #5 Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/net/nss_context.h" 5 #include "chrome/browser/net/nss_context.h"
6 6
7 #include "content/public/browser/browser_thread.h" 7 #include "content/public/browser/browser_thread.h"
8 #include "crypto/nss_util_internal.h" 8 #include "crypto/nss_util_internal.h"
9 #include "net/cert/nss_cert_database.h" 9 #include "net/cert/nss_cert_database.h"
10 10
11 crypto::ScopedPK11Slot GetPublicNSSKeySlotForResourceContext( 11 crypto::ScopedPK11Slot GetPublicNSSKeySlotForResourceContext(
12 content::ResourceContext* context) { 12 content::ResourceContext* context) {
13 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO)); 13 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
14 return crypto::ScopedPK11Slot(crypto::GetPublicNSSKeySlot()); 14 return crypto::ScopedPK11Slot(crypto::GetPersistentNSSKeySlot());
15 } 15 }
16 16
17 crypto::ScopedPK11Slot GetPrivateNSSKeySlotForResourceContext( 17 crypto::ScopedPK11Slot GetPrivateNSSKeySlotForResourceContext(
18 content::ResourceContext* context, 18 content::ResourceContext* context,
19 const base::Callback<void(crypto::ScopedPK11Slot)>& callback) { 19 const base::Callback<void(crypto::ScopedPK11Slot)>& callback) {
20 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO)); 20 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
21 return crypto::ScopedPK11Slot(crypto::GetPrivateNSSKeySlot()); 21 return crypto::ScopedPK11Slot(crypto::GetPersistentNSSKeySlot());
22 } 22 }
23 23
24 net::NSSCertDatabase* GetNSSCertDatabaseForResourceContext( 24 net::NSSCertDatabase* GetNSSCertDatabaseForResourceContext(
25 content::ResourceContext* context, 25 content::ResourceContext* context,
26 const base::Callback<void(net::NSSCertDatabase*)>& callback) { 26 const base::Callback<void(net::NSSCertDatabase*)>& callback) {
27 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO)); 27 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
28 return net::NSSCertDatabase::GetInstance(); 28 return net::NSSCertDatabase::GetInstance();
29 } 29 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/policy/policy_cert_verifier_browsertest.cc ('k') | chromeos/tpm_token_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698