OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "net/cert/nss_profile_filter_chromeos.h" | 5 #include "net/cert/nss_profile_filter_chromeos.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/strings/string_piece.h" | 10 #include "base/strings/string_piece.h" |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 bool NSSProfileFilterChromeOS::CertNotAllowedForProfilePredicate::operator()( | 146 bool NSSProfileFilterChromeOS::CertNotAllowedForProfilePredicate::operator()( |
147 const scoped_refptr<X509Certificate>& cert) const { | 147 const scoped_refptr<X509Certificate>& cert) const { |
148 return !filter_.IsCertAllowed(cert->os_cert_handle()); | 148 return !filter_.IsCertAllowed(cert->os_cert_handle()); |
149 } | 149 } |
150 | 150 |
151 NSSProfileFilterChromeOS::ModuleNotAllowedForProfilePredicate:: | 151 NSSProfileFilterChromeOS::ModuleNotAllowedForProfilePredicate:: |
152 ModuleNotAllowedForProfilePredicate(const NSSProfileFilterChromeOS& filter) | 152 ModuleNotAllowedForProfilePredicate(const NSSProfileFilterChromeOS& filter) |
153 : filter_(filter) {} | 153 : filter_(filter) {} |
154 | 154 |
155 bool NSSProfileFilterChromeOS::ModuleNotAllowedForProfilePredicate::operator()( | 155 bool NSSProfileFilterChromeOS::ModuleNotAllowedForProfilePredicate::operator()( |
156 const scoped_refptr<CryptoModule>& module) const { | 156 const crypto::ScopedPK11Slot& module) const { |
157 return !filter_.IsModuleAllowed(module->os_module_handle()); | 157 return !filter_.IsModuleAllowed(module.get()); |
158 } | 158 } |
159 | 159 |
160 } // namespace net | 160 } // namespace net |
OLD | NEW |