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

Unified Diff: third_party/WebKit/Source/core/dom/ScriptRunnerTest.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/core/dom/ScriptRunnerTest.cpp
diff --git a/third_party/WebKit/Source/core/dom/ScriptRunnerTest.cpp b/third_party/WebKit/Source/core/dom/ScriptRunnerTest.cpp
index 3ab28ef9531f4a7b2e780c1a2d98b80f403f8d9f..2b932381d0e3aba65cdb7016ea67890e8c0b0a02 100644
--- a/third_party/WebKit/Source/core/dom/ScriptRunnerTest.cpp
+++ b/third_party/WebKit/Source/core/dom/ScriptRunnerTest.cpp
@@ -437,7 +437,7 @@ TEST_F(ScriptRunnerTest, TasksWithDeadScriptRunner)
m_scriptRunner.release();
- ThreadHeap::collectAllGarbage();
+ ThreadState::current()-> collectAllGarbage();
// m_scriptRunner is gone. We need to make sure that ScriptRunner::Task do not access dead object.
EXPECT_CALL(*scriptLoader1, execute()).Times(0);

Powered by Google App Engine
This is Rietveld 408576698