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

Unified Diff: Source/platform/weborigin/KURL.cpp

Issue 397733004: Allow assertions to be enabled in Blink Release builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased. Created 6 years, 5 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
« no previous file with comments | « Source/platform/text/BidiResolver.h ('k') | Source/platform/weborigin/KnownPorts.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/weborigin/KURL.cpp
diff --git a/Source/platform/weborigin/KURL.cpp b/Source/platform/weborigin/KURL.cpp
index 3c7917f500a6cb0a4522b84b9828ad5f3b6560e5..51e4afd8e8d0e4e482e442b72d1626386b63582e 100644
--- a/Source/platform/weborigin/KURL.cpp
+++ b/Source/platform/weborigin/KURL.cpp
@@ -47,7 +47,7 @@ static const int invalidPortNumber = 0xFFFF;
static void assertProtocolIsGood(const char* protocol)
{
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
const char* p = protocol;
while (*p) {
ASSERT(*p > ' ' && *p < 0x7F && !(*p >= 'A' && *p <= 'Z'));
« no previous file with comments | « Source/platform/text/BidiResolver.h ('k') | Source/platform/weborigin/KnownPorts.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698