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

Unified Diff: Source/platform/ScriptForbiddenScope.cpp

Issue 402303003: Enable the AllowSuperUnsafeScript assert disabler in debug builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/ScriptForbiddenScope.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/ScriptForbiddenScope.cpp
diff --git a/Source/platform/ScriptForbiddenScope.cpp b/Source/platform/ScriptForbiddenScope.cpp
index 34a942945cc522c9bbbad05d4ccd6a88614da408..7aa697581b8ed53273ab8b56f9e6947cd83b5578 100644
--- a/Source/platform/ScriptForbiddenScope.cpp
+++ b/Source/platform/ScriptForbiddenScope.cpp
@@ -41,17 +41,13 @@ ScriptForbiddenScope::AllowUserAgentScript::~AllowUserAgentScript()
}
ScriptForbiddenScope::AllowSuperUnsafeScript::AllowSuperUnsafeScript()
-#if !ASSERT_ENABLED
: m_change(s_scriptForbiddenCount, 0)
-#endif
{
}
ScriptForbiddenScope::AllowSuperUnsafeScript::~AllowSuperUnsafeScript()
{
-#if !ASSERT_ENABLED
- RELEASE_ASSERT(!s_scriptForbiddenCount);
-#endif
+ ASSERT(!s_scriptForbiddenCount);
}
} // namespace blink
« no previous file with comments | « Source/platform/ScriptForbiddenScope.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698