| Index: third_party/WebKit/Source/platform/LifecycleNotifier.h
|
| diff --git a/third_party/WebKit/Source/platform/LifecycleNotifier.h b/third_party/WebKit/Source/platform/LifecycleNotifier.h
|
| index e03351d51d1eb1e5f8a92db877c7dadab1615a62..c38d3da0f4337329c21b26c664667324a8b7f593 100644
|
| --- a/third_party/WebKit/Source/platform/LifecycleNotifier.h
|
| +++ b/third_party/WebKit/Source/platform/LifecycleNotifier.h
|
| @@ -61,7 +61,9 @@
|
| {
|
| }
|
|
|
| +#if DCHECK_IS_ON()
|
| T* context() { return static_cast<T*>(this); }
|
| +#endif
|
|
|
| using ObserverSet = HeapHashSet<WeakMember<Observer>>;
|
|
|
| @@ -96,9 +98,8 @@
|
| ObserverSet observers;
|
| m_observers.swap(observers);
|
| for (Observer* observer : observers) {
|
| - DCHECK(observer->lifecycleContext() == context());
|
| + ASSERT(observer->lifecycleContext() == context());
|
| observer->contextDestroyed();
|
| - observer->clearContext();
|
| }
|
| }
|
|
|
|
|