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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBKeyPath.cpp

Issue 2640163004: Replace ENABLE(ASSERT) with DCHECK_IS_ON(). (Closed)
Patch Set: 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/indexeddb/IDBKeyPath.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBKeyPath.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBKeyPath.cpp
index d27ea037fb55dcbf75c3dad3883026336003de15..8f5e88bb2fb920b5560ce1fe2a40c4158e5a4366 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBKeyPath.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBKeyPath.cpp
@@ -106,7 +106,7 @@ IDBKeyPath::IDBKeyPath(const String& string)
IDBKeyPath::IDBKeyPath(const Vector<String>& array)
: m_type(ArrayType), m_array(array) {
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
for (size_t i = 0; i < m_array.size(); ++i)
ASSERT(!m_array[i].isNull());
#endif
@@ -123,7 +123,7 @@ IDBKeyPath::IDBKeyPath(const StringOrStringSequence& keyPath) {
ASSERT(keyPath.isStringSequence());
m_type = ArrayType;
m_array = keyPath.getAsStringSequence();
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
for (size_t i = 0; i < m_array.size(); ++i)
ASSERT(!m_array[i].isNull());
#endif

Powered by Google App Engine
This is Rietveld 408576698