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

Side by Side Diff: chrome/browser/ui/crypto_module_password_dialog_nss.cc

Issue 61643007: Update keygen to use correct NSS slot on ChromeOS multiprofile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase to 238776 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/ui/crypto_module_password_dialog.h" 5 #include "chrome/browser/ui/crypto_module_password_dialog_nss.h"
6 6
7 #include <pk11pub.h> 7 #include <pk11pub.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "content/public/browser/browser_thread.h" 11 #include "content/public/browser/browser_thread.h"
12 #include "net/base/crypto_module.h" 12 #include "net/base/crypto_module.h"
13 #include "net/cert/x509_certificate.h" 13 #include "net/cert/x509_certificate.h"
14 14
15 using content::BrowserThread; 15 using content::BrowserThread;
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 const std::string& host, 142 const std::string& host,
143 gfx::NativeWindow parent, 143 gfx::NativeWindow parent,
144 const base::Closure& callback) { 144 const base::Closure& callback) {
145 net::CryptoModuleList modules; 145 net::CryptoModuleList modules;
146 modules.push_back(net::CryptoModule::CreateFromHandle( 146 modules.push_back(net::CryptoModule::CreateFromHandle(
147 cert->os_cert_handle()->slot)); 147 cert->os_cert_handle()->slot));
148 UnlockSlotsIfNecessary(modules, reason, host, parent, callback); 148 UnlockSlotsIfNecessary(modules, reason, host, parent, callback);
149 } 149 }
150 150
151 } // namespace chrome 151 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698