 +    defines += [ "ELECTRON_NO_DCHECK" ]
 +  }
  }
- 
+
  grit("net_resources") {
 diff --git a/ppapi/host/ppapi_host.cc b/ppapi/host/ppapi_host.cc
 index f3c68fab3de6..b8609daf3ef9 100644

+    defines += [ "ELECTRON_NO_DCHECK" ]
+  }
 }
 
 if (is_android) {

  third_party/WebKit/Source/platform/wtf/ThreadRestrictionVerifier.h


diff --git a/base/logging.h b/base/logging.h
index 582fb89..24d3e82 100644
--- a/base/logging.h
+++ b/base/logging.h
@@ -850,7 +850,7 @@ const LogSeverity LOG_DCHECK = LOG_INFO;

 #else  // !(defined(_PREFAST_) && defined(OS_WIN))

-#if DCHECK_IS_ON()
+#if DCHECK_IS_ON() && !defined(ELECTRON_NO_DCHECK)

 #define DCHECK(condition)                                           \
   LAZY_STREAM(LOG_STREAM(DCHECK), !ANALYZER_ASSUME_TRUE(condition)) \
diff --git a/base/process/kill_win.cc b/base/process/kill_win.cc
