Index: third_party/WebKit/Source/bindings/core/v8/RemoteWindowProxy.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/RemoteWindowProxy.cpp b/third_party/WebKit/Source/bindings/core/v8/RemoteWindowProxy.cpp |
index d1fae091af48f28e81d8422d2a2e3691edb179fa..0f02f9612d3637d6ec55aca288a7066e40cbdf41 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/RemoteWindowProxy.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/RemoteWindowProxy.cpp |
@@ -61,7 +61,7 @@ void RemoteWindowProxy::DisposeContext(Lifecycle next_status) { |
global_proxy_.Get().SetWrapperClassId(0); |
V8DOMWrapper::ClearNativeInfo(GetIsolate(), |
global_proxy_.NewLocal(GetIsolate())); |
-#if DCHECK_IS_ON() |
+#if DCHECK_IS_ON() || DVLOG_IS_ON() |
DidDetachGlobalObject(); |
#endif |
} |
@@ -108,7 +108,7 @@ void RemoteWindowProxy::CreateContext() { |
DCHECK(global_proxy_.Get() == global_proxy); |
CHECK(!global_proxy_.IsEmpty()); |
-#if DCHECK_IS_ON() |
+#if DCHECK_IS_ON() || DVLOG_IS_ON() |
DidAttachGlobalObject(); |
#endif |