Index: content/shell/renderer/layout_test/leak_detector.cc |
diff --git a/content/shell/renderer/layout_test/leak_detector.cc b/content/shell/renderer/layout_test/leak_detector.cc |
index 3f935952a607aae89d365913793002ba9769379d..b1021f590d92806cd3409aa482378cfd7ea8835f 100644 |
--- a/content/shell/renderer/layout_test/leak_detector.cc |
+++ b/content/shell/renderer/layout_test/leak_detector.cc |
@@ -60,7 +60,8 @@ LeakDetector::~LeakDetector() { |
} |
void LeakDetector::TryLeakDetection(blink::WebLocalFrame* frame) { |
- web_leak_detector_->collectGarbageAndGetDOMCounts(frame); |
+ web_leak_detector_->prepareForLeakDetection(frame); |
+ web_leak_detector_->collectGarbageAndReport(); |
} |
void LeakDetector::onLeakDetectionComplete( |