Index: services/ui/ws/window_server.cc |
diff --git a/services/ui/ws/window_server.cc b/services/ui/ws/window_server.cc |
index b589f61554d4d335f741ecd7f77f81022a9082f6..28b55665ba56c9926b7ec704704316a785384cec 100644 |
--- a/services/ui/ws/window_server.cc |
+++ b/services/ui/ws/window_server.cc |
@@ -753,7 +753,14 @@ void WindowServer::OnGpuChannelEstablished( |
display->platform_display()->OnGpuChannelEstablished(gpu_channel_); |
// TODO(kylechar): When gpu channel is removed, this can instead happen |
// earlier, after GpuServiceProxy::OnInitialized(). |
- delegate_->StartDisplayInit(); |
+ bool window_manager_connected = false; |
+ for (auto* factory : window_manager_window_tree_factory_set_.GetFactories()) { |
+ if (factory->window_tree()) { |
+ window_manager_connected = true; |
+ break; |
+ } |
+ } |
+ delegate_->StartDisplayInit(window_manager_connected); |
} |
void WindowServer::OnSurfaceCreated(const cc::SurfaceId& surface_id, |