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

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

Issue 2295413002: Detach LeakDetectorController from remote controller on shutdown (Closed)
Patch Set: Fix for unit testing 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
« no previous file with comments | « no previous file | chrome/browser/metrics/leak_detector/leak_detector_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/leak_detector/leak_detector_controller.cc
diff --git a/chrome/browser/metrics/leak_detector/leak_detector_controller.cc b/chrome/browser/metrics/leak_detector/leak_detector_controller.cc
index dbe2577f4428ba222dad8543d59a2675a5201dbf..2f58c72672003ecbc0d7dd3c3d423e863c0b2b7f 100644
--- a/chrome/browser/metrics/leak_detector/leak_detector_controller.cc
+++ b/chrome/browser/metrics/leak_detector/leak_detector_controller.cc
@@ -177,6 +177,7 @@ LeakDetectorController::LeakDetectorController()
LeakDetectorController::~LeakDetectorController() {
DCHECK(thread_checker_.CalledOnValidThread());
LeakDetector::GetInstance()->RemoveObserver(this);
+ LeakDetectorRemoteController::SetLocalControllerInstance(nullptr);
}
void LeakDetectorController::GetLeakReports(
« no previous file with comments | « no previous file | chrome/browser/metrics/leak_detector/leak_detector_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698