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

Unified Diff: Source/platform/weborigin/KnownPorts.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/weborigin/KURL.cpp ('k') | Source/web/WebScopedMicrotaskSuppression.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/weborigin/KnownPorts.cpp
diff --git a/Source/platform/weborigin/KnownPorts.cpp b/Source/platform/weborigin/KnownPorts.cpp
index d02e232b0f648d8e289f10709a6a0c3d8e34ea44..ba669d208f3f7bb98f90c77ae1cfa45169617cdb 100644
--- a/Source/platform/weborigin/KnownPorts.cpp
+++ b/Source/platform/weborigin/KnownPorts.cpp
@@ -129,7 +129,7 @@ bool portAllowed(const KURL& url)
};
const unsigned short* const blockedPortListEnd = blockedPortList + WTF_ARRAY_LENGTH(blockedPortList);
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
// The port list must be sorted for binary_search to work.
static bool checkedPortList = false;
if (!checkedPortList) {
« no previous file with comments | « Source/platform/weborigin/KURL.cpp ('k') | Source/web/WebScopedMicrotaskSuppression.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698