| Index: third_party/WebKit/Source/wtf/text/StringView.cpp
|
| diff --git a/third_party/WebKit/Source/wtf/text/StringView.cpp b/third_party/WebKit/Source/wtf/text/StringView.cpp
|
| index d3d53e6279cf68be57080973d126fc6bcdf6a07c..6774c5f7c0930a6dbe5e9e9c264de6e048eb0aa1 100644
|
| --- a/third_party/WebKit/Source/wtf/text/StringView.cpp
|
| +++ b/third_party/WebKit/Source/wtf/text/StringView.cpp
|
| @@ -16,8 +16,9 @@ StringView::StringView(const UChar* chars)
|
| #if DCHECK_IS_ON()
|
| StringView::~StringView() {
|
| DCHECK(m_impl);
|
| - DCHECK(!m_impl->hasOneRef()) << "StringView does not own the StringImpl, it "
|
| - "must not have the last ref.";
|
| + DCHECK(!m_impl->hasOneRef() || m_impl->isStatic())
|
| + << "StringView does not own the StringImpl, it "
|
| + "must not have the last ref.";
|
| }
|
| #endif
|
|
|
|
|