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

Unified Diff: net/spdy/spdy_test_util_common.cc

Issue 2095523002: Make //crypto factories return std::unique_ptr<>s (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: I'm blind Created 4 years, 6 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 | « net/spdy/spdy_test_util_common.h ('k') | net/ssl/channel_id_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_test_util_common.cc
diff --git a/net/spdy/spdy_test_util_common.cc b/net/spdy/spdy_test_util_common.cc
index af8fa353c1fdefcb3cfc88b6e5c102c7985eb97b..ca5592c9f5f9e9ff068012b1c6f1a00c77035a29 100644
--- a/net/spdy/spdy_test_util_common.cc
+++ b/net/spdy/spdy_test_util_common.cc
@@ -7,7 +7,6 @@
#include <stdint.h>
#include <cstddef>
-#include <memory>
#include <utility>
#include "base/compiler_specific.h"
@@ -324,12 +323,12 @@ MockECSignatureCreatorFactory::MockECSignatureCreatorFactory() {
}
MockECSignatureCreatorFactory::~MockECSignatureCreatorFactory() {
- crypto::ECSignatureCreator::SetFactoryForTesting(NULL);
+ crypto::ECSignatureCreator::SetFactoryForTesting(nullptr);
}
-crypto::ECSignatureCreator* MockECSignatureCreatorFactory::Create(
- crypto::ECPrivateKey* key) {
- return new MockECSignatureCreator(key);
+std::unique_ptr<crypto::ECSignatureCreator>
+MockECSignatureCreatorFactory::Create(crypto::ECPrivateKey* key) {
+ return base::MakeUnique<MockECSignatureCreator>(key);
}
SpdySessionDependencies::SpdySessionDependencies(NextProto protocol)
« no previous file with comments | « net/spdy/spdy_test_util_common.h ('k') | net/ssl/channel_id_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698