| Index: third_party/WebKit/public/platform/WebPrivateOwnPtr.h
|
| diff --git a/third_party/WebKit/public/platform/WebPrivateOwnPtr.h b/third_party/WebKit/public/platform/WebPrivateOwnPtr.h
|
| index 30a5cb273cf8fc2929b2fb7e16bab1a1c1c906a0..060a6217fdc24b98880347f175e70d81f3aaad0e 100644
|
| --- a/third_party/WebKit/public/platform/WebPrivateOwnPtr.h
|
| +++ b/third_party/WebKit/public/platform/WebPrivateOwnPtr.h
|
| @@ -29,6 +29,7 @@
|
|
|
| #include "WebCommon.h"
|
| #include "WebNonCopyable.h"
|
| +#include "base/logging.h"
|
| #include <cstddef>
|
|
|
| #if INSIDE_BLINK
|
| @@ -48,7 +49,7 @@ class WebPrivateOwnPtr : public WebNonCopyable {
|
| public:
|
| WebPrivateOwnPtr() : m_ptr(nullptr) {}
|
| WebPrivateOwnPtr(std::nullptr_t) : m_ptr(nullptr) {}
|
| - ~WebPrivateOwnPtr() { BLINK_ASSERT(!m_ptr); }
|
| + ~WebPrivateOwnPtr() { DCHECK(!m_ptr); }
|
|
|
| explicit WebPrivateOwnPtr(T* ptr)
|
| : m_ptr(ptr)
|
| @@ -80,13 +81,13 @@ public:
|
|
|
| T& operator*() const
|
| {
|
| - BLINK_ASSERT(m_ptr);
|
| + DCHECK(m_ptr);
|
| return *m_ptr;
|
| }
|
|
|
| T* operator->() const
|
| {
|
| - BLINK_ASSERT(m_ptr);
|
| + DCHECK(m_ptr);
|
| return m_ptr;
|
| }
|
| #endif // INSIDE_BLINK
|
|
|