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

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

Issue 53763003: Initialize per-ChromeOS-user NSS slots and provide the functions to access them. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix CertificateManagerBrowserTest Created 7 years 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
« no previous file with comments | « chrome/browser/net/nss_context_chromeos.cc ('k') | chrome/browser/profiles/profile_io_data.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/net/nss_context.h"
6
7 #include "content/public/browser/browser_thread.h"
8 #include "crypto/nss_util_internal.h"
9
10 crypto::ScopedPK11Slot GetPublicNSSKeySlotForResourceContext(
11 content::ResourceContext* context) {
12 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
13 return crypto::ScopedPK11Slot(crypto::GetPublicNSSKeySlot());
14 }
15
16 crypto::ScopedPK11Slot GetPrivateNSSKeySlotForResourceContext(
17 content::ResourceContext* context,
18 const base::Callback<void(crypto::ScopedPK11Slot)>& callback) {
19 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
20 return crypto::ScopedPK11Slot(crypto::GetPrivateNSSKeySlot());
21 }
OLDNEW
« no previous file with comments | « chrome/browser/net/nss_context_chromeos.cc ('k') | chrome/browser/profiles/profile_io_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698