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

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: Fix comment 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
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 ae397b758c453e2e5e9984bbd256eeb402129dc0..ebe3f336f14d1b9c2eed43e5adae0826d5df06f7 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)

Powered by Google App Engine
This is Rietveld 408576698