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

Side by Side Diff: net/cert/nss_cert_database_chromeos.cc

Issue 214863002: Extension API enterprise.platformKeys. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Asynchronous calls revisited. Created 6 years, 7 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 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_cert_database_chromeos.h" 5 #include "net/cert/nss_cert_database_chromeos.h"
6 6
7 #include <cert.h> 7 #include <cert.h>
8 #include <pk11pub.h> 8 #include <pk11pub.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 NSSProfileFilterChromeOS::ModuleNotAllowedForProfilePredicate( 68 NSSProfileFilterChromeOS::ModuleNotAllowedForProfilePredicate(
69 profile_filter_)), 69 profile_filter_)),
70 modules->end()); 70 modules->end());
71 DVLOG(1) << "filtered " << pre_size - modules->size() << " of " << pre_size 71 DVLOG(1) << "filtered " << pre_size - modules->size() << " of " << pre_size
72 << " modules"; 72 << " modules";
73 } 73 }
74 74
75 void NSSCertDatabaseChromeOS::ListCertsImpl( 75 void NSSCertDatabaseChromeOS::ListCertsImpl(
76 const NSSProfileFilterChromeOS& profile_filter, 76 const NSSProfileFilterChromeOS& profile_filter,
77 CertificateList* certs) { 77 CertificateList* certs) {
78 NSSCertDatabase::ListCertsImpl(certs); 78 NSSCertDatabase::ListCertsImpl(crypto::ScopedPK11Slot(), certs);
79 79
80 size_t pre_size = certs->size(); 80 size_t pre_size = certs->size();
81 certs->erase(std::remove_if( 81 certs->erase(std::remove_if(
82 certs->begin(), 82 certs->begin(),
83 certs->end(), 83 certs->end(),
84 NSSProfileFilterChromeOS::CertNotAllowedForProfilePredicate( 84 NSSProfileFilterChromeOS::CertNotAllowedForProfilePredicate(
85 profile_filter)), 85 profile_filter)),
86 certs->end()); 86 certs->end());
87 DVLOG(1) << "filtered " << pre_size - certs->size() << " of " << pre_size 87 DVLOG(1) << "filtered " << pre_size - certs->size() << " of " << pre_size
88 << " certs"; 88 << " certs";
89 } 89 }
90 90
91 } // namespace net 91 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698