Index: chrome/browser/gtk/certificate_dialogs.cc |
diff --git a/chrome/browser/gtk/certificate_dialogs.cc b/chrome/browser/gtk/certificate_dialogs.cc |
index ba12f6d4fb50a2acba4cec9e20e95bd766d98014..4c18d03c05e2c5df703a354a0cf8913d7e511a1e 100644 |
--- a/chrome/browser/gtk/certificate_dialogs.cc |
+++ b/chrome/browser/gtk/certificate_dialogs.cc |
@@ -55,22 +55,10 @@ void WriteFileOnFileThread(const FilePath& path, const std::string& data) { |
//////////////////////////////////////////////////////////////////////////////// |
// NSS certificate export functions. |
-class FreeNSSCMSMessage { |
- public: |
- inline void operator()(NSSCMSMessage* x) const { |
- NSS_CMSMessage_Destroy(x); |
- } |
-}; |
-typedef scoped_ptr_malloc<NSSCMSMessage, FreeNSSCMSMessage> |
+typedef scoped_ptr_malloc<NSSCMSMessage, NSS_CMSMessage_Destroy> |
ScopedNSSCMSMessage; |
-class FreeNSSCMSSignedData { |
- public: |
- inline void operator()(NSSCMSSignedData* x) const { |
- NSS_CMSSignedData_Destroy(x); |
- } |
-}; |
-typedef scoped_ptr_malloc<NSSCMSSignedData, FreeNSSCMSSignedData> |
+typedef scoped_ptr_malloc<NSSCMSSignedData, NSS_CMSSignedData_Destroy> |
ScopedNSSCMSSignedData; |
std::string GetDerString(CERTCertificate* cert) { |