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

Unified Diff: third_party/WebKit/Source/core/dom/DOMURL.cpp

Issue 2401523002: Replace ASSERT family with DCHECK and so on in core/dom/. (Closed)
Patch Set: Created 4 years, 2 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/core/dom/DOMURL.cpp
diff --git a/third_party/WebKit/Source/core/dom/DOMURL.cpp b/third_party/WebKit/Source/core/dom/DOMURL.cpp
index 5f54ef8bd3e814348a018971937a4acaf13eac23..dbebfe6c9fcad3d8a808a2c7995e04f4b53add6f 100644
--- a/third_party/WebKit/Source/core/dom/DOMURL.cpp
+++ b/third_party/WebKit/Source/core/dom/DOMURL.cpp
@@ -107,7 +107,9 @@ void DOMURL::updateSearchParams(const String& queryString) {
return;
AutoReset<bool> scope(&m_isInUpdate, true);
- ASSERT(m_searchParams->urlObject() == this);
+#if DCHECK_IS_ON()
+ DCHECK_EQ(m_searchParams->urlObject(), this);
+#endif
m_searchParams->setInput(queryString);
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMStringList.cpp ('k') | third_party/WebKit/Source/core/dom/DOMURLUtils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698