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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/RemoteWindowProxy.cpp

Issue 2954873002: Add DVLOG_IS_ON() in preparation for adding dvlog_always_on in chromium project.
Patch Set: Created 3 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: 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

Powered by Google App Engine
This is Rietveld 408576698