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

Unified Diff: webrtc/base/rtccertificategenerator.cc

Issue 1920043002: Replace scoped_ptr with unique_ptr in webrtc/base/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased 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 | « webrtc/base/rtccertificate_unittests.cc ('k') | webrtc/base/rtccertificategenerator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/rtccertificategenerator.cc
diff --git a/webrtc/base/rtccertificategenerator.cc b/webrtc/base/rtccertificategenerator.cc
index d4572b01590c8d56865ec631f5574b607eb54328..f0d72e7fe4df84d76902e52c8fe7c6cc8b168cb3 100644
--- a/webrtc/base/rtccertificategenerator.cc
+++ b/webrtc/base/rtccertificategenerator.cc
@@ -11,6 +11,7 @@
#include "webrtc/base/rtccertificategenerator.h"
#include <algorithm>
+#include <memory>
#include "webrtc/base/checks.h"
#include "webrtc/base/sslidentity.h"
@@ -124,7 +125,7 @@ RTCCertificateGenerator::GenerateCertificate(
}
if (!identity)
return nullptr;
- scoped_ptr<SSLIdentity> identity_sptr(identity);
+ std::unique_ptr<SSLIdentity> identity_sptr(identity);
return RTCCertificate::Create(std::move(identity_sptr));
}
« no previous file with comments | « webrtc/base/rtccertificate_unittests.cc ('k') | webrtc/base/rtccertificategenerator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698