| 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).
|
|
|