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

Unified Diff: chrome/common/net/x509_certificate_model_nss.cc

Issue 168643002: Convert scoped_ptr_malloc -> scoped_ptr, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/chrome_paths_mac.mm ('k') | content/browser/geolocation/wifi_data_provider_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/net/x509_certificate_model_nss.cc
diff --git a/chrome/common/net/x509_certificate_model_nss.cc b/chrome/common/net/x509_certificate_model_nss.cc
index 51e2642ccb820b652738b2ca324677b0a60ec7ac..9df20a8c9aad3ae985f9a44c4e74f5f2a7534f18 100644
--- a/chrome/common/net/x509_certificate_model_nss.cc
+++ b/chrome/common/net/x509_certificate_model_nss.cc
@@ -74,14 +74,12 @@ std::string ProcessExtension(
////////////////////////////////////////////////////////////////////////////////
// NSS certificate export functions.
-class FreeNSSCMSMessage {
- public:
+struct NSSCMSMessageDeleter {
inline void operator()(NSSCMSMessage* x) const {
NSS_CMSMessage_Destroy(x);
}
};
-typedef scoped_ptr_malloc<NSSCMSMessage, FreeNSSCMSMessage>
- ScopedNSSCMSMessage;
+typedef scoped_ptr<NSSCMSMessage, NSSCMSMessageDeleter> ScopedNSSCMSMessage;
class FreeNSSCMSSignedData {
public:
« no previous file with comments | « chrome/common/chrome_paths_mac.mm ('k') | content/browser/geolocation/wifi_data_provider_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698