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

Unified Diff: Source/platform/LifecycleObserver.h

Issue 1017313002: Simplify handling of LocalFrame lifecycle notifications. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: clear context on FDO::contextDestroyed() Created 5 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/platform/LifecycleObserver.h
diff --git a/Source/platform/LifecycleObserver.h b/Source/platform/LifecycleObserver.h
index cc7dcc31fc07009a31fa29bfc722ec8a9f07c3dc..6637428da094e1f927fe49f5baeec6b75879bacb 100644
--- a/Source/platform/LifecycleObserver.h
+++ b/Source/platform/LifecycleObserver.h
@@ -37,17 +37,17 @@ class LifecycleObserver : public WillBeGarbageCollectedMixin {
public:
using Context = T;
- explicit LifecycleObserver(Context* context)
+ LifecycleObserver()
: m_lifecycleContext(nullptr)
{
}
+#if !ENABLE(OILPAN)
virtual ~LifecycleObserver()
{
-#if !ENABLE(OILPAN)
dispose();
-#endif
}
+#endif
DEFINE_INLINE_VIRTUAL_TRACE()
{
« Source/core/page/PageLifecycleObserver.cpp ('K') | « Source/platform/LifecycleContextTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698