| Index: third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp b/third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp
|
| index aa2358c9ff5c9ed77e601ffc22e3da029b24a812..10a50a0ca36a50f6461305f9df23ab29ee2785a2 100644
|
| --- a/third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp
|
| +++ b/third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp
|
| @@ -157,7 +157,7 @@ private:
|
|
|
| std::unique_ptr<DummyPageHolder> m_dummyPageHolder;
|
| Checkpoint m_checkpoint;
|
| - std::unique_ptr<DocumentThreadableLoader> m_loader;
|
| + Persistent<DocumentThreadableLoader> m_loader;
|
| };
|
|
|
| class WorkerThreadableLoaderTestHelper : public ThreadableLoaderTestHelper, public WorkerLoaderProxyProvider {
|
| @@ -211,7 +211,7 @@ public:
|
| {
|
| ASSERT(m_workerThread);
|
| ASSERT(m_workerThread->isCurrentThread());
|
| - m_loader.reset();
|
| + m_loader = nullptr;
|
| }
|
|
|
| Checkpoint& checkpoint() override
|
| @@ -333,7 +333,7 @@ private:
|
| std::unique_ptr<DummyPageHolder> m_dummyPageHolder;
|
| Checkpoint m_checkpoint;
|
| // |m_loader| must be touched only from the worker thread only.
|
| - std::unique_ptr<ThreadableLoader> m_loader;
|
| + CrossThreadPersistent<ThreadableLoader> m_loader;
|
| };
|
|
|
| class ThreadableLoaderTest : public ::testing::TestWithParam<ThreadableLoaderToTest> {
|
|
|