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

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

Issue 2640163004: Replace ENABLE(ASSERT) with DCHECK_IS_ON(). (Closed)
Patch Set: m_domTreeVersion initialization Created 3 years, 11 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 e9188990987231f75120563b9cf554f5b6de7791..b21a2c39c2ed8e809380b81501fe0470f22ebe87 100644
--- a/third_party/WebKit/Source/modules/crypto/NormalizeAlgorithm.cpp
+++ b/third_party/WebKit/Source/modules/crypto/NormalizeAlgorithm.cpp
@@ -59,7 +59,7 @@ struct AlgorithmNameMapping {
unsigned char algorithmNameLength;
WebCryptoAlgorithmId algorithmId;
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
bool operator<(const AlgorithmNameMapping&) const;
#endif
};
@@ -91,7 +91,7 @@ static_assert(WebCryptoAlgorithmIdLast + 1 ==
WTF_ARRAY_LENGTH(algorithmNameMappings),
"algorithmNameMappings needs to be updated");
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
// Essentially std::is_sorted() (however that function is new to C++11).
template <typename Iterator>

Powered by Google App Engine
This is Rietveld 408576698