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

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

Issue 2321223003: Revert of Move collectGarbage* methods to ThreadState (Closed)
Patch Set: 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 ff5966f0370e0091b1a1e1fb183c29948d869161..a20c0153963ce8e3a22e41c92804cf70cb58c7d5 100644
--- a/third_party/WebKit/Source/platform/heap/RunAllTests.cpp
+++ b/third_party/WebKit/Source/platform/heap/RunAllTests.cpp
@@ -52,10 +52,9 @@
int runHelper(base::TestSuite* testSuite)
{
BlinkTestEnvironmentScope blinkTestEnvironment;
- blink::ThreadState* currentThreadState = blink::ThreadState::current();
- currentThreadState->registerTraceDOMWrappers(nullptr, nullptr, nullptr, nullptr);
+ blink::ThreadState::current()->registerTraceDOMWrappers(nullptr, nullptr, nullptr, nullptr);
int result = testSuite->Run();
- currentThreadState->collectAllGarbage();
+ blink::ThreadHeap::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