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

Unified Diff: third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp

Issue 2181243002: Move ThreadableLoader to Oilpan heap (2/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@onheap-bridge-peer-in-worker-threadable-loader
Patch Set: fix Created 4 years, 5 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
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> {

Powered by Google App Engine
This is Rietveld 408576698