   base/process/kill_win.cc
   content/browser/frame_host/navigation_controller_impl.cc
   content/browser/frame_host/render_frame_host_impl.cc
+  content/browser/renderer_host/render_widget_host_view_mac.mm
   ppapi/host/ppapi_host.cc
   storage/browser/quota/client_usage_tracker.cc
-  third_party/WebKit/Source/platform/wtf/ThreadRestrictionVerifier.h
+  third_party/WebKit/Source/platform/wtf/text/StringImpl.h
 
 
 diff --git a/base/logging.h b/base/logging.h

+    defines += [ "ELECTRON_NO_DCHECK" ]
+  }
 }
diff --git a/third_party/WebKit/Source/platform/BUILD.gn b/third_party/WebKit/Source/platform/BUILD.gn
index 7806a71..4550819 100644
--- a/third_party/WebKit/Source/platform/BUILD.gn
+++ b/third_party/WebKit/Source/platform/BUILD.gn
@@ -1707,6 +1707,10 @@ component("platform") {
     configs -= [ "//build/config/compiler:default_symbols" ]
     configs += remove_webcore_symbols_config
   }
+
+  if (is_electron_build) {
+    defines += [ "ELECTRON_NO_DCHECK" ]
+  }
 }
 
 static_library("test_support") {
diff --git a/third_party/WebKit/Source/platform/wtf/ThreadRestrictionVerifier.h b/third_party/WebKit/Source/platform/wtf/ThreadRestrictionVerifier.h
index 73c4d74ef3c1..d4a1a6c5696b 100644
--- a/third_party/WebKit/Source/platform/wtf/ThreadRestrictionVerifier.h
+++ b/third_party/WebKit/Source/platform/wtf/ThreadRestrictionVerifier.h
@@ -85,13 +85,13 @@ class ThreadRestrictionVerifier {
  private:
   // Indicates that the object may (or may not) be owned by more than one place.
   void SetShared(bool shared) {
-    bool previously_shared = shared_;
+    // bool previously_shared = shared_;
     shared_ = shared;
 
     if (!shared_)
       return;
 
-    DCHECK_NE(shared, previously_shared);
+    // DCHECK_NE(shared, previously_shared);
     // Capture the current thread to verify that subsequent ref/deref happen on
     // this thread.
     owning_thread_ = CurrentThread();
diff --git a/ui/base/BUILD.gn b/ui/base/BUILD.gn
index 119d0fab47c9..7f9110f8b197 100644
--- a/ui/base/BUILD.gn
+++ b/ui/base/BUILD.gn
@@ -647,6 +647,10 @@ component("base") {
   if (is_android || is_ios) {
     sources -= [ "device_form_factor_desktop.cc" ]
   }
+
+  if (is_electron_build) {
+    defines += [ "ELECTRON_NO_DCHECK" ]
+  }
 }

 static_library("test_support") {
diff --git a/url/BUILD.gn b/url/BUILD.gn
index 82eb115ae666..b4806804cdbf 100644
--- a/url/BUILD.gn

 
   if (render_frame_created_) {
     if (!frame_bindings_control_)
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm
index 79e4cc1a0479..19ba3236477e 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm
@@ -2093,8 +2104,8 @@ - (void)keyEvent:(NSEvent*)theEvent wasKeyEquivalent:(BOOL)equiv {
   if (EventIsReservedBySystem(theEvent))
     return;
 
-  DCHECK([theEvent type] != NSKeyDown ||
-         !equiv == !([theEvent modifierFlags] & NSCommandKeyMask));
+  //DCHECK([theEvent type] != NSKeyDown ||
+  //       !equiv == !([theEvent modifierFlags] & NSCommandKeyMask));
 
   if ([theEvent type] == NSFlagsChanged) {
     // Ignore NSFlagsChanged events from the NumLock and Fn keys as
diff --git a/ppapi/host/ppapi_host.cc b/ppapi/host/ppapi_host.cc
index f3c68fab3de6..b8609daf3ef9 100644
--- a/ppapi/host/ppapi_host.cc
