Index: crypto/sha2.cc |
diff --git a/crypto/sha2.cc b/crypto/sha2.cc |
index 2646d1bbd15e6583fb54827fadbed13eb5bc216d..e97b8f40376b5d34c4581bd6949380bec2b96251 100644 |
--- a/crypto/sha2.cc |
+++ b/crypto/sha2.cc |
@@ -6,14 +6,15 @@ |
#include <stddef.h> |
-#include "base/memory/scoped_ptr.h" |
+#include <memory> |
+ |
#include "base/stl_util.h" |
#include "crypto/secure_hash.h" |
namespace crypto { |
void SHA256HashString(const base::StringPiece& str, void* output, size_t len) { |
- scoped_ptr<SecureHash> ctx(SecureHash::Create(SecureHash::SHA256)); |
+ std::unique_ptr<SecureHash> ctx(SecureHash::Create(SecureHash::SHA256)); |
ctx->Update(str.data(), str.length()); |
ctx->Finish(output, len); |
} |