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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptState.h

Issue 2640163004: Replace ENABLE(ASSERT) with DCHECK_IS_ON(). (Closed)
Patch Set: m_domTreeVersion initialization Created 3 years, 11 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: third_party/WebKit/Source/bindings/core/v8/ScriptState.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptState.h b/third_party/WebKit/Source/bindings/core/v8/ScriptState.h
index 65b6f73bb4f75d2e80df84786b0fdd8999f7cdf3..4d8d0febb920191cc1012eb5301d35a3031deded 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptState.h
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptState.h
@@ -155,7 +155,7 @@ class CORE_EXPORT ScriptState : public RefCounted<ScriptState> {
}
void detachGlobalObject();
void clearContext() { return m_context.clear(); }
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
bool isGlobalObjectDetached() const { return m_globalObjectDetached; }
#endif
@@ -184,8 +184,8 @@ class CORE_EXPORT ScriptState : public RefCounted<ScriptState> {
// Otherwise, the v8::Context will leak.
std::unique_ptr<V8PerContextData> m_perContextData;
-#if ENABLE(ASSERT)
- bool m_globalObjectDetached;
+#if DCHECK_IS_ON()
+ bool m_globalObjectDetached = false;
#endif
};

Powered by Google App Engine
This is Rietveld 408576698