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

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

Issue 2012393002: Leak detector posts notifications to task runner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CHECK -> EXPECT_TRUE Created 4 years, 7 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 | components/metrics/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/leak_detector_controller.cc
diff --git a/chrome/browser/metrics/leak_detector_controller.cc b/chrome/browser/metrics/leak_detector_controller.cc
index fef91fe08e31c1ba4954ecfa158fd392a268ade2..4f7995cc5dc24d4d077c3fca59b4e5c3e0a47cf9 100644
--- a/chrome/browser/metrics/leak_detector_controller.cc
+++ b/chrome/browser/metrics/leak_detector_controller.cc
@@ -9,6 +9,7 @@
#include "base/logging.h"
#include "base/strings/string_number_conversions.h"
#include "components/variations/variations_associated_data.h"
+#include "content/public/browser/browser_thread.h"
namespace metrics {
@@ -93,7 +94,8 @@ LeakDetectorController::LeakDetectorController()
detector->AddObserver(this);
// Leak detector parameters are stored in |params_|.
- detector->Init(params_);
+ detector->Init(params_, content::BrowserThread::GetMessageLoopProxyForThread(
+ content::BrowserThread::UI));
}
LeakDetectorController::~LeakDetectorController() {
« no previous file with comments | « no previous file | components/metrics/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698