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

Unified Diff: content/child/webcrypto/crypto_data.cc

Issue 251213006: [refactor] Remove WebArrayBuffer from unittests, since now using std::vector. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: constify Created 6 years, 8 months 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 | « content/child/webcrypto/crypto_data.h ('k') | content/child/webcrypto/platform_crypto_openssl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/webcrypto/crypto_data.cc
diff --git a/content/child/webcrypto/crypto_data.cc b/content/child/webcrypto/crypto_data.cc
index 47de0bed91818ac0fe805b21f80cbb8f05b8147f..29736418ae5b1de0716b530b631da8604453237e 100644
--- a/content/child/webcrypto/crypto_data.cc
+++ b/content/child/webcrypto/crypto_data.cc
@@ -4,8 +4,6 @@
#include "content/child/webcrypto/crypto_data.h"
-#include "third_party/WebKit/public/platform/WebArrayBuffer.h"
-
namespace content {
namespace webcrypto {
@@ -23,10 +21,6 @@ CryptoData::CryptoData(const std::string& bytes)
: NULL),
byte_length_(bytes.size()) {}
-CryptoData::CryptoData(const blink::WebArrayBuffer& buffer)
- : bytes_(reinterpret_cast<const unsigned char*>(buffer.data())),
- byte_length_(buffer.byteLength()) {}
-
CryptoData::CryptoData(const blink::WebVector<unsigned char>& bytes)
: bytes_(bytes.data()), byte_length_(bytes.size()) {}
« no previous file with comments | « content/child/webcrypto/crypto_data.h ('k') | content/child/webcrypto/platform_crypto_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698