Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(190)

Unified Diff: third_party/WebKit/Source/core/dom/ContextLifecycleNotifier.cpp

Issue 1609343002: Move hasPendingActivity from ActiveDOMObject to ScriptWrappable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 840b2fc1d58853fa78b2eb5a575e41f85faee1af..bf8cbb4d26f0f57946a8b78879c116ed59359fc6 100644
--- a/third_party/WebKit/Source/core/dom/ContextLifecycleNotifier.cpp
+++ b/third_party/WebKit/Source/core/dom/ContextLifecycleNotifier.cpp
@@ -104,18 +104,6 @@ unsigned ContextLifecycleNotifier::activeDOMObjectCount() const
return activeDOMObjects;
}
-bool ContextLifecycleNotifier::hasPendingActivity() const
-{
- for (ContextLifecycleObserver* observer : m_observers) {
- if (observer->observerType() != ContextLifecycleObserver::ActiveDOMObjectType)
- continue;
- ActiveDOMObject* activeDOMObject = static_cast<ActiveDOMObject*>(observer);
- if (activeDOMObject->hasPendingActivity())
- return true;
- }
- return false;
-}
-
#if ENABLE(ASSERT)
bool ContextLifecycleNotifier::contains(ActiveDOMObject* object) const
{

Powered by Google App Engine
This is Rietveld 408576698