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

Unified Diff: Source/platform/LifecycleObserver.h

Issue 1024543004: Disallow adding ContextLifecycleObservers during iteration. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
« Source/platform/LifecycleNotifier.h ('K') | « Source/platform/LifecycleNotifier.h ('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 6637428da094e1f927fe49f5baeec6b75879bacb..5e99c383cec7a16068d09a5e87778cd20609f85a 100644
--- a/Source/platform/LifecycleObserver.h
+++ b/Source/platform/LifecycleObserver.h
@@ -37,9 +37,10 @@ class LifecycleObserver : public WillBeGarbageCollectedMixin {
public:
using Context = T;
- LifecycleObserver()
+ LifecycleObserver(Context* context)
haraken 2015/03/23 14:30:43 Add explicit.
sof 2015/03/23 15:06:29 Done, along with making the ctor protected.
: m_lifecycleContext(nullptr)
{
+ setContext(context);
}
#if !ENABLE(OILPAN)
« Source/platform/LifecycleNotifier.h ('K') | « Source/platform/LifecycleNotifier.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698