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

Unified Diff: content/browser/browser_main_runner.cc

Issue 2530043002: Set process phases in the StackSamplingProfiler. (Closed)
Patch Set: move MainLoopStart milestone and histogram to top of utility method Created 3 years, 11 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: content/browser/browser_main_runner.cc
diff --git a/content/browser/browser_main_runner.cc b/content/browser/browser_main_runner.cc
index 2116cc260ed132be2f7929cb9a961d9e5be05e45..4865cdb15bac5211e3dd9ccfb832ce25a5b6164d 100644
--- a/content/browser/browser_main_runner.cc
+++ b/content/browser/browser_main_runner.cc
@@ -145,6 +145,7 @@ class BrowserMainRunnerImpl : public BrowserMainRunner {
void Shutdown() override {
DCHECK(initialization_started_);
DCHECK(!is_shutdown_);
+
#ifdef LEAK_SANITIZER
// Invoke leak detection now, to avoid dealing with shutdown-only leaks.
// Normally this will have already happened in
@@ -153,6 +154,9 @@ class BrowserMainRunnerImpl : public BrowserMainRunner {
// If leaks are found, the process will exit here.
__lsan_do_leak_check();
#endif
+
+ main_loop_->PreShutdown();
+
// If startup tracing has not been finished yet, replace it's dumper
// with special version, which would save trace file on exit (i.e.
// startup tracing becomes a version of shutdown tracing).

Powered by Google App Engine
This is Rietveld 408576698