| Index: components/webcrypto/crypto_data.cc
|
| diff --git a/components/webcrypto/crypto_data.cc b/components/webcrypto/crypto_data.cc
|
| index dd369caa1585fc9045ef7daede9c3ee5b171dac6..f2937da3d860711d12fc63c045a4fb6edc7a1ca3 100644
|
| --- a/components/webcrypto/crypto_data.cc
|
| +++ b/components/webcrypto/crypto_data.cc
|
| @@ -3,7 +3,6 @@
|
| // found in the LICENSE file.
|
|
|
| #include "components/webcrypto/crypto_data.h"
|
| -#include "base/stl_util.h"
|
|
|
| namespace webcrypto {
|
|
|
| @@ -15,9 +14,8 @@ CryptoData::CryptoData(const unsigned char* bytes, unsigned int byte_length)
|
| }
|
|
|
| CryptoData::CryptoData(const std::vector<unsigned char>& bytes)
|
| - : bytes_(vector_as_array(&bytes)),
|
| - byte_length_(static_cast<unsigned int>(bytes.size())) {
|
| -}
|
| + : bytes_(bytes.data()),
|
| + byte_length_(static_cast<unsigned int>(bytes.size())) {}
|
|
|
| CryptoData::CryptoData(const std::string& bytes)
|
| : bytes_(bytes.size() ? reinterpret_cast<const unsigned char*>(bytes.data())
|
|
|