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

Unified Diff: Source/platform/LifecycleObserver.h

Issue 1160253006: Rename LifecycleObserver<T>::dispose() as clearContext() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rename as clearContext() Created 5 years, 6 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
« no previous file with comments | « Source/core/inspector/AsyncCallTracker.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/LifecycleObserver.h
diff --git a/Source/platform/LifecycleObserver.h b/Source/platform/LifecycleObserver.h
index 3295d819579d6bb3fb02d801ac14e84aae4f7fa2..30c65bd12f74a3e7ecb33a8af31ae69b375f115c 100644
--- a/Source/platform/LifecycleObserver.h
+++ b/Source/platform/LifecycleObserver.h
@@ -40,7 +40,7 @@ public:
#if !ENABLE(OILPAN)
virtual ~LifecycleObserver()
{
- dispose();
+ clearContext();
}
#endif
@@ -52,11 +52,6 @@ public:
virtual void contextDestroyed() { }
- void dispose()
- {
- setContext(nullptr);
- }
-
Context* lifecycleContext() const { return m_lifecycleContext; }
void clearLifecycleContext() { m_lifecycleContext = nullptr; }
@@ -69,6 +64,11 @@ protected:
void setContext(Context*);
+ void clearContext()
+ {
+ setContext(nullptr);
+ }
+
private:
RawPtrWillBeWeakMember<Context> m_lifecycleContext;
};
« no previous file with comments | « Source/core/inspector/AsyncCallTracker.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698