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

Unified Diff: Source/core/dom/ExecutionContext.cpp

Issue 194923007: Explicit notification and removal of lifecycle observers. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Perform ThreadState detachment last Created 6 years, 9 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: Source/core/dom/ExecutionContext.cpp
diff --git a/Source/core/dom/ExecutionContext.cpp b/Source/core/dom/ExecutionContext.cpp
index a0b89148f4c2026c95172ba8a3147e3d5bd579ce..ac0de7b0564eae0a414be21b1d900fe7f3a9ed96 100644
--- a/Source/core/dom/ExecutionContext.cpp
+++ b/Source/core/dom/ExecutionContext.cpp
@@ -96,6 +96,11 @@ void ExecutionContext::stopActiveDOMObjects()
lifecycleNotifier().notifyStoppingActiveDOMObjects();
}
+void ExecutionContext::removeAllLifecycleObservers()
+{
+ lifecycleNotifier().removeAndNotifyAllObservers();
+}
+
unsigned ExecutionContext::activeDOMObjectCount()
{
return lifecycleNotifier().activeDOMObjects().size();

Powered by Google App Engine
This is Rietveld 408576698