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

Unified Diff: Source/platform/ScriptForbiddenScope.cpp

Issue 403133002: Suppress ScriptForbiddenScope in Document.cpp and FrameView.cpp in release mode (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') | Source/web/WebPluginContainerImpl.cpp » ('j') | 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 55ec6a19c031e32063566cab36657e886e9d7fdf..34a942945cc522c9bbbad05d4ccd6a88614da408 100644
--- a/Source/platform/ScriptForbiddenScope.cpp
+++ b/Source/platform/ScriptForbiddenScope.cpp
@@ -40,4 +40,18 @@ ScriptForbiddenScope::AllowUserAgentScript::~AllowUserAgentScript()
ASSERT(!s_scriptForbiddenCount);
}
+ScriptForbiddenScope::AllowSuperUnsafeScript::AllowSuperUnsafeScript()
+#if !ASSERT_ENABLED
+ : m_change(s_scriptForbiddenCount, 0)
+#endif
+{
+}
+
+ScriptForbiddenScope::AllowSuperUnsafeScript::~AllowSuperUnsafeScript()
+{
+#if !ASSERT_ENABLED
+ RELEASE_ASSERT(!s_scriptForbiddenCount);
+#endif
+}
+
} // namespace blink
« no previous file with comments | « Source/platform/ScriptForbiddenScope.h ('k') | Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698