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

Unified Diff: third_party/WebKit/Source/platform/heap/RunAllTests.cpp

Issue 2307003002: Move collectGarbage* methods to ThreadState (Closed)
Patch Set: fix Created 4 years, 3 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/platform/heap/RunAllTests.cpp
diff --git a/third_party/WebKit/Source/platform/heap/RunAllTests.cpp b/third_party/WebKit/Source/platform/heap/RunAllTests.cpp
index a20c0153963ce8e3a22e41c92804cf70cb58c7d5..ff5966f0370e0091b1a1e1fb183c29948d869161 100644
--- a/third_party/WebKit/Source/platform/heap/RunAllTests.cpp
+++ b/third_party/WebKit/Source/platform/heap/RunAllTests.cpp
@@ -52,9 +52,10 @@ public:
int runHelper(base::TestSuite* testSuite)
{
BlinkTestEnvironmentScope blinkTestEnvironment;
- blink::ThreadState::current()->registerTraceDOMWrappers(nullptr, nullptr, nullptr, nullptr);
+ blink::ThreadState* currentThreadState = blink::ThreadState::current();
+ currentThreadState->registerTraceDOMWrappers(nullptr, nullptr, nullptr, nullptr);
int result = testSuite->Run();
- blink::ThreadHeap::collectAllGarbage();
+ currentThreadState->collectAllGarbage();
return result;
}
« no previous file with comments | « third_party/WebKit/Source/platform/heap/PersistentTest.cpp ('k') | third_party/WebKit/Source/platform/heap/ThreadState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698