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

Unified Diff: content/child/webcrypto/nss/sha_nss.cc

Issue 410743002: [refactor] Replace custom utility function with base's "vector_as_array()" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase onto master Created 6 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 | « content/child/webcrypto/nss/rsa_oaep_nss.cc ('k') | content/child/webcrypto/openssl/aes_cbc_openssl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/webcrypto/nss/sha_nss.cc
diff --git a/content/child/webcrypto/nss/sha_nss.cc b/content/child/webcrypto/nss/sha_nss.cc
index d7c31d753f38866a617224e3999d44e45d2c0c76..b881d2084f7f833cac0c366fb5e21d008e5e63af 100644
--- a/content/child/webcrypto/nss/sha_nss.cc
+++ b/content/child/webcrypto/nss/sha_nss.cc
@@ -5,6 +5,7 @@
#include <sechash.h>
#include <vector>
+#include "base/stl_util.h"
#include "content/child/webcrypto/algorithm_implementation.h"
#include "content/child/webcrypto/crypto_data.h"
#include "content/child/webcrypto/nss/util_nss.h"
@@ -85,7 +86,7 @@ class DigestorNSS : public blink::WebCryptoDigestor {
unsigned int result_length = HASH_ResultLenContext(hash_context_);
result->resize(result_length);
- unsigned char* digest = Uint8VectorStart(result);
+ unsigned char* digest = vector_as_array(result);
unsigned int digest_size; // ignored
return FinishInternal(digest, &digest_size);
}
« no previous file with comments | « content/child/webcrypto/nss/rsa_oaep_nss.cc ('k') | content/child/webcrypto/openssl/aes_cbc_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698