| Index: third_party/WebKit/Source/platform/heap/GCTaskRunner.h
|
| diff --git a/third_party/WebKit/Source/platform/heap/GCTaskRunner.h b/third_party/WebKit/Source/platform/heap/GCTaskRunner.h
|
| index 211ff27faeb0992d5bc1ab70fd495552eaf1adbf..60f71569e419273fd50fc1f7cf4fb0741e6ae551 100644
|
| --- a/third_party/WebKit/Source/platform/heap/GCTaskRunner.h
|
| +++ b/third_party/WebKit/Source/platform/heap/GCTaskRunner.h
|
| @@ -43,8 +43,8 @@ namespace blink {
|
|
|
| class MessageLoopInterruptor final : public BlinkGCInterruptor {
|
| public:
|
| - explicit MessageLoopInterruptor(WebTaskRunner* taskRunner)
|
| - : m_taskRunner(taskRunner) {}
|
| + explicit MessageLoopInterruptor(RefPtr<WebTaskRunner> taskRunner)
|
| + : m_taskRunner(std::move(taskRunner)) {}
|
|
|
| void requestInterrupt() override {
|
| // GCTask has an empty run() method. Its only purpose is to guarantee
|
| @@ -62,7 +62,7 @@ class MessageLoopInterruptor final : public BlinkGCInterruptor {
|
| // conservatively enters safepoint with pointers on stack.
|
| }
|
|
|
| - WebTaskRunner* m_taskRunner;
|
| + RefPtr<WebTaskRunner> m_taskRunner;
|
| };
|
|
|
| class GCTaskObserver final : public WebThread::TaskObserver {
|
|
|