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

Unified Diff: components/webcrypto/crypto_data.cc

Issue 1461703009: Switch //components from vector_as_array to vector::data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: eroman comment Created 5 years, 1 month 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
« no previous file with comments | « components/webcrypto/algorithms/util.cc ('k') | components/webcrypto/webcrypto_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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())
« no previous file with comments | « components/webcrypto/algorithms/util.cc ('k') | components/webcrypto/webcrypto_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698