From 6e7dca9082a29c4f0cd426a0c80f54afc3a85de5 Mon Sep 17 00:00:00 2001 From: Jeremy Apthorp Date: Thu, 14 Feb 2019 08:59:04 -0800 Subject: [PATCH] chore: restore WTF::StringImpl dchecks (#15635) --- patches/common/chromium/dcheck.patch | 29 ---------------------------- 1 file changed, 29 deletions(-) diff --git a/patches/common/chromium/dcheck.patch b/patches/common/chromium/dcheck.patch index 4346459d77..47bc77e3b2 100644 --- a/patches/common/chromium/dcheck.patch +++ b/patches/common/chromium/dcheck.patch @@ -45,35 +45,6 @@ index 6dfe29cb33f494228c254ca4a1890626af68e2d7..30fa308bca29c77e4708b108d17a7e5e // The browser requested to clear the session history when it initiated the // navigation. Now we know that the renderer has updated its state accordingly // and it is safe to also clear the browser side history. -diff --git a/third_party/blink/renderer/platform/wtf/text/string_impl.h b/third_party/blink/renderer/platform/wtf/text/string_impl.h -index 3073b0856d29e442f8905041350a2bb196aa24ce..e997f094c75e055b44ce4a31c359c31cb1f25a14 100644 ---- a/third_party/blink/renderer/platform/wtf/text/string_impl.h -+++ b/third_party/blink/renderer/platform/wtf/text/string_impl.h -@@ -258,21 +258,21 @@ class WTF_EXPORT StringImpl { - } - - ALWAYS_INLINE bool HasOneRef() const { --#if DCHECK_IS_ON() -+#if 0 - DCHECK(IsStatic() || verifier_.IsSafeToUse()) << AsciiForDebugging(); - #endif - return ref_count_ == 1; - } - - ALWAYS_INLINE void AddRef() const { --#if DCHECK_IS_ON() -+#if 0 - DCHECK(IsStatic() || verifier_.OnRef(ref_count_)) << AsciiForDebugging(); - #endif - ++ref_count_; - } - - ALWAYS_INLINE void Release() const { --#if DCHECK_IS_ON() -+#if 0 - DCHECK(IsStatic() || verifier_.OnDeref(ref_count_)) - << AsciiForDebugging() << " " << CurrentThread(); - #endif diff --git a/ui/base/clipboard/clipboard_win.cc b/ui/base/clipboard/clipboard_win.cc index 1857bfa07ce3d8656105e696363a760889794e77..c25d8c241907fb166218670533a3b6e1e2f32769 100644 --- a/ui/base/clipboard/clipboard_win.cc