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..0cb39a4b6617bb126d78529b8fd960df8f35f157 100644 |
--- a/content/public/test/render_view_test.cc |
+++ b/content/public/test/render_view_test.cc |
@@ -293,7 +293,7 @@ void RenderViewTest::TearDown() { |
scoped_ptr<blink::WebLeakDetector> leak_detector = |
make_scoped_ptr(blink::WebLeakDetector::create(this)); |
- leak_detector->collectGarbageAndGetDOMCounts(GetMainFrame()); |
+ leak_detector->prepareForLeakDetection(GetMainFrame()); |
view_ = NULL; |
mock_process_.reset(); |
@@ -308,6 +308,8 @@ void RenderViewTest::TearDown() { |
autorelease_pool_.reset(NULL); |
#endif |
+ leak_detector->collectGarbageAndReport(); |
+ |
blink_platform_impl_.Shutdown(); |
blink::shutdown(); |