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

Unified Diff: third_party/WebKit/Source/core/frame/SubresourceIntegrity.cpp

Issue 1406183010: Replace ARRAY_SIZE with WTF_ARRAY_LENGTH (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | third_party/WebKit/Source/core/frame/SubresourceIntegrityTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/SubresourceIntegrity.cpp
diff --git a/third_party/WebKit/Source/core/frame/SubresourceIntegrity.cpp b/third_party/WebKit/Source/core/frame/SubresourceIntegrity.cpp
index 216b614d9c8aeae4a0502081cce19db0f6db6ada..a9c9739cee789af9b1c6828130e6df0d5fba1b03 100644
--- a/third_party/WebKit/Source/core/frame/SubresourceIntegrity.cpp
+++ b/third_party/WebKit/Source/core/frame/SubresourceIntegrity.cpp
@@ -83,11 +83,11 @@ HashAlgorithm SubresourceIntegrity::getPrioritizedHashFunction(HashAlgorithm alg
break;
case HashAlgorithmSha384:
weakerAlgorithms = weakerThanSha384;
- length = ARRAY_SIZE(weakerThanSha384);
+ length = WTF_ARRAY_LENGTH(weakerThanSha384);
break;
case HashAlgorithmSha512:
weakerAlgorithms = weakerThanSha512;
- length = ARRAY_SIZE(weakerThanSha512);
+ length = WTF_ARRAY_LENGTH(weakerThanSha512);
break;
default:
ASSERT_NOT_REACHED();
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/SubresourceIntegrityTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698