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

Unified Diff: remoting/host/remoting_me2me_host.cc

Issue 2679293002: Fix TaskScheduler initialization in remoting processes. (Closed)
Patch Set: Created 3 years, 10 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: remoting/host/remoting_me2me_host.cc
diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc
index 66d1a437baa654c1380f6a7b9e2e1657eaaf4911..d4851ad79e8196743f562cc3dec566ac2cf8e258 100644
--- a/remoting/host/remoting_me2me_host.cc
+++ b/remoting/host/remoting_me2me_host.cc
@@ -1670,6 +1670,9 @@ int HostProcessMain() {
// Run the main (also UI) message loop until the host no longer needs it.
base::RunLoop().Run();
+ // Block until tasks blocking shutdown have completed their execution.
+ base::TaskScheduler::GetInstance()->Shutdown();
+
return exit_code;
}

Powered by Google App Engine
This is Rietveld 408576698