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

Unified Diff: components/mus/ws/server_window_surface.cc

Issue 1827453002: Handful of changes to get mus to shutdown correctly (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « components/mus/ws/platform_display.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/server_window_surface.cc
diff --git a/components/mus/ws/server_window_surface.cc b/components/mus/ws/server_window_surface.cc
index 800de90e4a6c9edba67fe78d832261fc885d918d..48fa3c6cd8422556f2d2349209e227723cf741f1 100644
--- a/components/mus/ws/server_window_surface.cc
+++ b/components/mus/ws/server_window_surface.cc
@@ -155,7 +155,7 @@ bool ServerWindowSurface::ConvertSurfaceDrawQuad(
void ServerWindowSurface::ReturnResources(
const cc::ReturnedResourceArray& resources) {
- if (!client_)
+ if (!client_ || !base::MessageLoop::current())
return;
client_->ReturnResources(
mojo::Array<mojom::ReturnedResourcePtr>::From(resources));
« no previous file with comments | « components/mus/ws/platform_display.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698