| Index: crypto/ec_signature_creator.cc
|
| diff --git a/crypto/ec_signature_creator.cc b/crypto/ec_signature_creator.cc
|
| index a6887bc117b7f5e7206e42d62367a9c3be571ad3..34e5181d518972bc1b51cf768d56ff72e8ef0d96 100644
|
| --- a/crypto/ec_signature_creator.cc
|
| +++ b/crypto/ec_signature_creator.cc
|
| @@ -5,21 +5,23 @@
|
| #include "crypto/ec_signature_creator.h"
|
|
|
| #include "base/logging.h"
|
| +#include "base/memory/ptr_util.h"
|
| #include "crypto/ec_signature_creator_impl.h"
|
|
|
| namespace crypto {
|
|
|
| namespace {
|
|
|
| -ECSignatureCreatorFactory* g_factory_ = NULL;
|
| +ECSignatureCreatorFactory* g_factory_ = nullptr;
|
|
|
| } // namespace
|
|
|
| // static
|
| -ECSignatureCreator* ECSignatureCreator::Create(ECPrivateKey* key) {
|
| +std::unique_ptr<ECSignatureCreator> ECSignatureCreator::Create(
|
| + ECPrivateKey* key) {
|
| if (g_factory_)
|
| return g_factory_->Create(key);
|
| - return new ECSignatureCreatorImpl(key);
|
| + return base::MakeUnique<ECSignatureCreatorImpl>(key);
|
| }
|
|
|
| // static
|
|
|