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

Unified Diff: Source/platform/ScriptForbiddenScope.cpp

Issue 648423003: Enforce ScriptForbiddenScope and make it non-fatal. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Trim superfluous includes Created 6 years, 2 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: Source/platform/ScriptForbiddenScope.cpp
diff --git a/Source/platform/ScriptForbiddenScope.cpp b/Source/platform/ScriptForbiddenScope.cpp
index cd7c65d509af88fcd115deee1cd76373d3642e4c..79e6cdcec3006e73bdf734e5ba803abc8850f89a 100644
--- a/Source/platform/ScriptForbiddenScope.cpp
+++ b/Source/platform/ScriptForbiddenScope.cpp
@@ -53,14 +53,4 @@ ScriptForbiddenScope::AllowUserAgentScript::~AllowUserAgentScript()
ASSERT(!s_scriptForbiddenCount);
}
-ScriptForbiddenScope::AllowSuperUnsafeScript::AllowSuperUnsafeScript()
- : m_change(s_scriptForbiddenCount, 0)
-{
-}
-
-ScriptForbiddenScope::AllowSuperUnsafeScript::~AllowSuperUnsafeScript()
-{
- ASSERT(!s_scriptForbiddenCount);
-}
-
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698