| Index: crypto/hmac.cc
|
| diff --git a/crypto/hmac.cc b/crypto/hmac.cc
|
| index e9869b4fe1119cf38e0e368e6f9c27d89f1db91b..333e357f90c327689b9909b152fe1f6af22ddc5e 100644
|
| --- a/crypto/hmac.cc
|
| +++ b/crypto/hmac.cc
|
| @@ -7,6 +7,7 @@
|
| #include <stddef.h>
|
|
|
| #include <algorithm>
|
| +#include <memory>
|
|
|
| #include "base/logging.h"
|
| #include "crypto/secure_util.h"
|
| @@ -47,7 +48,7 @@ bool HMAC::VerifyTruncated(const base::StringPiece& data,
|
| if (digest.empty())
|
| return false;
|
| size_t digest_length = DigestLength();
|
| - scoped_ptr<unsigned char[]> computed_digest(
|
| + std::unique_ptr<unsigned char[]> computed_digest(
|
| new unsigned char[digest_length]);
|
| if (!Sign(data, computed_digest.get(), digest_length))
|
| return false;
|
|
|