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

Unified Diff: chrome/browser/metrics/leak_detector/leak_detector_controller_unittest.cc

Issue 2396743002: Leak reports collect information about the memory usage (Closed)
Patch Set: Fixed scope of 'if defined(OS_CHROMEOS)' Created 4 years, 2 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: chrome/browser/metrics/leak_detector/leak_detector_controller_unittest.cc
diff --git a/chrome/browser/metrics/leak_detector/leak_detector_controller_unittest.cc b/chrome/browser/metrics/leak_detector/leak_detector_controller_unittest.cc
index f900f216d646e3476e2e0019b88a43b0a3012444..a77369a9881c1155687b160e46136fb4817d5a6f 100644
--- a/chrome/browser/metrics/leak_detector/leak_detector_controller_unittest.cc
+++ b/chrome/browser/metrics/leak_detector/leak_detector_controller_unittest.cc
@@ -32,7 +32,10 @@ class TestLeakDetectorController : public LeakDetectorController {
public:
using LeakDetectorController::OnLeaksFound;
- TestLeakDetectorController() {}
+ // This constructor suppresses starting memory metrics job in the superclass.
+ TestLeakDetectorController() {
+ LeakDetectorController::set_enable_collect_memory_usage_step(false);
+ }
private:
DISALLOW_COPY_AND_ASSIGN(TestLeakDetectorController);

Powered by Google App Engine
This is Rietveld 408576698