dcheck.patch 1.9 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
  2. From: deepak1556 <[email protected]>
  3. Date: Thu, 20 Sep 2018 17:44:38 -0700
  4. Subject: dcheck.patch
  5. This disables some debug checks which currently fail when running the Electron
  6. test suite. In general there should be sustained effort to have all debug checks
  7. enabled. If you want to help, choose one of the diffs below and remove it. Then
  8. build Electron (debug configuration) and make sure all tests pass on the CI
  9. systems. Unfortunately the tests don't always cover the check failures, so it's
  10. good to also run some non-trivial Electron app to verify.
  11. Apart from getting rid of a whole diff, you may also be able to replace one diff
  12. with another which enables at least some of the previously disabled checks. For
  13. example, the checks might be disabled for a whole build target, but actually
  14. only one or two specific checks fail. Then it's better to simply comment out the
  15. failing checks and allow the rest of the target to have them enabled.
  16. diff --git a/ui/base/clipboard/clipboard_win.cc b/ui/base/clipboard/clipboard_win.cc
  17. index a9fd6d67f9eae14034cb68d338af3f26714d9b6a..e29ff71aaae6ef1f758689d2be13a6249fc61f53 100644
  18. --- a/ui/base/clipboard/clipboard_win.cc
  19. +++ b/ui/base/clipboard/clipboard_win.cc
  20. @@ -907,10 +907,10 @@ SkBitmap ClipboardWin::ReadImageInternal(ClipboardBuffer buffer) const {
  21. void ClipboardWin::WriteToClipboard(ClipboardFormatType format, HANDLE handle) {
  22. UINT cf_format = format.ToFormatEtc().cfFormat;
  23. - DCHECK_NE(clipboard_owner_->hwnd(), nullptr);
  24. + // DCHECK_NE(clipboard_owner_->hwnd(), nullptr);
  25. if (handle && !::SetClipboardData(cf_format, handle)) {
  26. - DCHECK_NE(GetLastError(),
  27. - static_cast<unsigned long>(ERROR_CLIPBOARD_NOT_OPEN));
  28. + // DCHECK_NE(GetLastError(),
  29. + // static_cast<unsigned long>(ERROR_CLIPBOARD_NOT_OPEN));
  30. ::GlobalFree(handle);
  31. }
  32. }