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

Unified Diff: Source/core/dom/ScriptForbiddenScope.h

Issue 331793004: Delete ASSERT_DISABLED (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/core/dom/ScriptForbiddenScope.h
diff --git a/Source/core/dom/ScriptForbiddenScope.h b/Source/core/dom/ScriptForbiddenScope.h
index 7c4daa7211b0688640dd7b01ccdb49ab7158e709..c1f5112584ba22e8c3befbc5510c463b7761ee23 100644
--- a/Source/core/dom/ScriptForbiddenScope.h
+++ b/Source/core/dom/ScriptForbiddenScope.h
@@ -9,19 +9,7 @@
namespace WebCore {
-#if ASSERT_DISABLED
-
-class ScriptForbiddenScope {
-public:
- ScriptForbiddenScope() { }
- class AllowUserAgentScript {
- public:
- AllowUserAgentScript() { }
- };
- static bool isScriptForbidden() { return false; }
-};
-
-#else
+#if ASSERT_ENABLED
class ScriptForbiddenScope {
public:
@@ -39,6 +27,18 @@ public:
static bool isScriptForbidden();
};
+#else
+
+class ScriptForbiddenScope {
+public:
+ ScriptForbiddenScope() { }
+ class AllowUserAgentScript {
+ public:
+ AllowUserAgentScript() { }
+ };
+ static bool isScriptForbidden() { return false; }
+};
+
#endif
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698