Chromium Code Reviews| Index: third_party/WebKit/Source/platform/heap/BlinkGCAPIReference.md |
| diff --git a/third_party/WebKit/Source/platform/heap/BlinkGCAPIReference.md b/third_party/WebKit/Source/platform/heap/BlinkGCAPIReference.md |
| index 18812379426d61c5851ef0c6671dad09e775ac07..05ea4cb9da52591b95e07510a528735c4f0903f2 100644 |
| --- a/third_party/WebKit/Source/platform/heap/BlinkGCAPIReference.md |
| +++ b/third_party/WebKit/Source/platform/heap/BlinkGCAPIReference.md |
| @@ -177,7 +177,7 @@ with a destructor. |
| A pre-finalizer must have the following function signature: `void preFinalizer()`. You can change the function name. |
| A pre-finalizer must be registered in the constructor by using the following statement: |
| -"`ThreadState::current()->registerPreFinalizer(preFinalizerName);`". |
| +"`ThreadState::current()->registerPreFinalizer(this);`". |
|
Peter Beverloo
2016/04/13 18:32:28
Do you want to separate out this change (and the c
Michael van Ouwerkerk
2016/04/14 13:42:12
Done.
|
| ```c++ |
| class YourClass : public GarbageCollectedFinalized<YourClass> { |
| @@ -185,7 +185,7 @@ class YourClass : public GarbageCollectedFinalized<YourClass> { |
| public: |
| YourClass() |
| { |
| - ThreadState::current()->registerPreFinalizer(dispose); |
| + ThreadState::current()->registerPreFinalizer(this); |
| } |
| void dispose() |
| { |