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

Unified Diff: chrome/browser/gtk/certificate_dialogs.cc

Issue 2804042: Incomplete changes to make scoped_ptr_malloc use plain functions. (Closed)
Patch Set: chrome now builds & links Created 10 years, 5 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/browser/geolocation/wifi_data_provider_linux.cc ('k') | chrome/common/sqlite_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « chrome/browser/geolocation/wifi_data_provider_linux.cc ('k') | chrome/common/sqlite_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698