| Index: third_party/WebKit/Source/core/dom/ContextLifecycleNotifier.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/ContextLifecycleNotifier.cpp b/third_party/WebKit/Source/core/dom/ContextLifecycleNotifier.cpp
|
| index 18c26a91cdd35df9500c70a63b7edd811e10388f..fbd88b6faf52a3c38bd8ae8f583ff08bdab8ca06 100644
|
| --- a/third_party/WebKit/Source/core/dom/ContextLifecycleNotifier.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/ContextLifecycleNotifier.cpp
|
| @@ -62,25 +62,6 @@ void ContextLifecycleNotifier::notifySuspendingActiveDOMObjects() {
|
| }
|
| }
|
|
|
| -void ContextLifecycleNotifier::notifyStoppingActiveDOMObjects() {
|
| - // Observers may be removed, but handled after iteration has completed.
|
| - AutoReset<IterationState> scope(&m_iterationState, AllowPendingRemoval);
|
| - ObserverSet observers;
|
| - m_observers.swap(observers);
|
| - for (ContextLifecycleObserver* observer : observers) {
|
| - if (observer->observerType() !=
|
| - ContextLifecycleObserver::ActiveDOMObjectType)
|
| - continue;
|
| - ActiveDOMObject* activeDOMObject = static_cast<ActiveDOMObject*>(observer);
|
| -#if DCHECK_IS_ON()
|
| - DCHECK_EQ(activeDOMObject->getExecutionContext(), context());
|
| - DCHECK(activeDOMObject->suspendIfNeededCalled());
|
| -#endif
|
| - activeDOMObject->stop();
|
| - }
|
| - removePending(observers);
|
| -}
|
| -
|
| unsigned ContextLifecycleNotifier::activeDOMObjectCount() const {
|
| DCHECK(!isIteratingOverObservers());
|
| unsigned activeDOMObjects = 0;
|
|
|