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

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

Issue 1854423002: ASSERT -> {DCHECK|DCHECK_XX}, ENABLE(ASSERT) -> DCHECK_IS_ON() in dom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mark svg/as-image/svg-nested.html crash on win Created 4 years, 8 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/SecurityContext.cpp
diff --git a/third_party/WebKit/Source/core/dom/SecurityContext.cpp b/third_party/WebKit/Source/core/dom/SecurityContext.cpp
index 4652a683093438531931d14cf1cb5d36bab7b73a..fe0af6e8af7fc9878d8d9779bfb86a254f9f7824 100644
--- a/third_party/WebKit/Source/core/dom/SecurityContext.cpp
+++ b/third_party/WebKit/Source/core/dom/SecurityContext.cpp
@@ -99,10 +99,10 @@ void SecurityContext::enforceSuborigin(const Suborigin& suborigin)
if (!RuntimeEnabledFeatures::suboriginsEnabled())
return;
- ASSERT(!suborigin.name().isEmpty());
- ASSERT(RuntimeEnabledFeatures::suboriginsEnabled());
- ASSERT(m_securityOrigin.get());
- ASSERT(!m_securityOrigin->hasSuborigin() || m_securityOrigin->suborigin()->name() == suborigin.name());
+ DCHECK(!suborigin.name().isEmpty());
+ DCHECK(RuntimeEnabledFeatures::suboriginsEnabled());
+ DCHECK(m_securityOrigin.get());
+ DCHECK(!m_securityOrigin->hasSuborigin() || m_securityOrigin->suborigin()->name() == suborigin.name());
m_securityOrigin->addSuborigin(suborigin);
didUpdateSecurityOrigin();
}

Powered by Google App Engine
This is Rietveld 408576698