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

Unified Diff: third_party/WebKit/Source/modules/crypto/SubtleCrypto.cpp

Issue 2972023002: Deduplicate CopyBytes in modules/crypto (Closed)
Patch Set: Dropped the "test in jumbo" code Created 3 years, 5 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 | « third_party/WebKit/Source/modules/crypto/NormalizeAlgorithm.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/crypto/SubtleCrypto.cpp
diff --git a/third_party/WebKit/Source/modules/crypto/SubtleCrypto.cpp b/third_party/WebKit/Source/modules/crypto/SubtleCrypto.cpp
index 98fbadd81cfbf73e1063099454cef7f617b19828..45b488e09543dd92a45b6e828e6fe0babd6a55ab 100644
--- a/third_party/WebKit/Source/modules/crypto/SubtleCrypto.cpp
+++ b/third_party/WebKit/Source/modules/crypto/SubtleCrypto.cpp
@@ -39,6 +39,7 @@
#include "modules/crypto/CryptoHistograms.h"
#include "modules/crypto/CryptoKey.h"
#include "modules/crypto/CryptoResultImpl.h"
+#include "modules/crypto/CryptoUtilities.h"
#include "modules/crypto/NormalizeAlgorithm.h"
#include "platform/json/JSONValues.h"
#include "public/platform/Platform.h"
@@ -154,11 +155,6 @@ static bool ParseJsonWebKey(const Dictionary& dict,
return true;
}
-static WebVector<uint8_t> CopyBytes(const DOMArrayPiece& source) {
- return WebVector<uint8_t>(static_cast<uint8_t*>(source.Data()),
- source.ByteLength());
-}
-
SubtleCrypto::SubtleCrypto() {}
ScriptPromise SubtleCrypto::encrypt(ScriptState* script_state,
« no previous file with comments | « third_party/WebKit/Source/modules/crypto/NormalizeAlgorithm.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698