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

Unified Diff: third_party/WebKit/Source/web/tests/WebViewTest.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/web/tests/WebViewTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebViewTest.cpp b/third_party/WebKit/Source/web/tests/WebViewTest.cpp
index ebda5112b4aac7dfd91c56a86dad1a6eba7d627b..47dbdb25f888538dfee33503184b7c65013ae9aa 100644
--- a/third_party/WebKit/Source/web/tests/WebViewTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebViewTest.cpp
@@ -2709,7 +2709,7 @@ TEST_F(WebViewTest, DeleteElementWithRegisteredHandler)
// checking below. We do a precise GC (collectAllGarbage does not scan the stack)
// to ensure the div element dies. This is also why the Document is in a Persistent
// since we want that to stay around.
- ThreadHeap::collectAllGarbage();
+ ThreadState::current()-> collectAllGarbage();
EXPECT_FALSE(registry.hasEventHandlers(EventHandlerRegistry::ScrollEvent));
}

Powered by Google App Engine
This is Rietveld 408576698