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

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

Issue 1880143002: Convert chrome/common to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 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/multi_process_lock_unittest.cc ('k') | chrome/common/net/x509_certificate_model_openssl.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 0853391b2323320c26e2cb241c2f0cdcfc42166b..7289dc00ac9c03dff14c06c2e5d67ea75427cbc2 100644
--- a/chrome/common/net/x509_certificate_model_nss.cc
+++ b/chrome/common/net/x509_certificate_model_nss.cc
@@ -16,6 +16,8 @@
#include <stdint.h>
#include <string.h>
+#include <memory>
+
#include "base/logging.h"
#include "base/numerics/safe_conversions.h"
#include "base/strings/string_number_conversions.h"
@@ -94,14 +96,15 @@ struct NSSCMSMessageDeleter {
NSS_CMSMessage_Destroy(x);
}
};
-typedef scoped_ptr<NSSCMSMessage, NSSCMSMessageDeleter> ScopedNSSCMSMessage;
+typedef std::unique_ptr<NSSCMSMessage, NSSCMSMessageDeleter>
+ ScopedNSSCMSMessage;
struct FreeNSSCMSSignedData {
inline void operator()(NSSCMSSignedData* x) const {
NSS_CMSSignedData_Destroy(x);
}
};
-typedef scoped_ptr<NSSCMSSignedData, FreeNSSCMSSignedData>
+typedef std::unique_ptr<NSSCMSSignedData, FreeNSSCMSSignedData>
ScopedNSSCMSSignedData;
} // namespace
« no previous file with comments | « chrome/common/multi_process_lock_unittest.cc ('k') | chrome/common/net/x509_certificate_model_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698