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

Unified Diff: content/public/test/render_view_test.cc

Issue 1472943004: Split up leak detector into two stages for better leak reporting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: restore enable_oilpan=0 default Created 5 years, 1 month 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: content/public/test/render_view_test.cc
diff --git a/content/public/test/render_view_test.cc b/content/public/test/render_view_test.cc
index 9d546d8f7afbf8a1168351c9cbf096715aa529cb..3b28c02f556626c50fe7daacd85dd069dd587935 100644
--- a/content/public/test/render_view_test.cc
+++ b/content/public/test/render_view_test.cc
@@ -293,6 +293,7 @@ void RenderViewTest::TearDown() {
scoped_ptr<blink::WebLeakDetector> leak_detector =
make_scoped_ptr(blink::WebLeakDetector::create(this));
+ leak_detector->delayFinalGarbageCollection();
haraken 2015/11/24 23:54:51 Would you elaborate on why we need to delay the GC
sof 2015/11/25 06:20:50 Clearing view_ below will trigger a close() on the
haraken 2015/11/25 07:39:38 Doesn't it mean just that we need to trigger anoth
leak_detector->collectGarbageAndGetDOMCounts(GetMainFrame());
view_ = NULL;
@@ -308,6 +309,8 @@ void RenderViewTest::TearDown() {
autorelease_pool_.reset(NULL);
#endif
+ leak_detector->collectFinalGarbage();
+
blink_platform_impl_.Shutdown();
blink::shutdown();
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/WebLeakDetector.cpp » ('j') | third_party/WebKit/Source/web/WebLeakDetector.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698