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

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

Issue 2896443003: Replace remaining ASSERT with DCHECK/_EQ as appropriate (Closed)
Patch Set: actually fix WorkerBackingthread Created 3 years, 7 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
Index: third_party/WebKit/Source/modules/crypto/NormalizeAlgorithm.cpp
diff --git a/third_party/WebKit/Source/modules/crypto/NormalizeAlgorithm.cpp b/third_party/WebKit/Source/modules/crypto/NormalizeAlgorithm.cpp
index e67d9159ddf72823dc608e1cf3c6094783c1cd38..93b13d4bfff20c0eb7307e4219c9c11de641f3f8 100644
--- a/third_party/WebKit/Source/modules/crypto/NormalizeAlgorithm.cpp
+++ b/third_party/WebKit/Source/modules/crypto/NormalizeAlgorithm.cpp
@@ -180,7 +180,9 @@ bool LookupAlgorithmIdByName(const String& algorithm_name,
const AlgorithmNameMapping* end =
kAlgorithmNameMappings + WTF_ARRAY_LENGTH(kAlgorithmNameMappings);
- ASSERT(VerifyAlgorithmNameMappings(begin, end));
+#if DCHECK_IS_ON()
+ DCHECK(VerifyAlgorithmNameMappings(begin, end));
+#endif
const AlgorithmNameMapping* it;
if (algorithm_name.Impl()->Is8Bit())

Powered by Google App Engine
This is Rietveld 408576698