Index: components/mus/ws/server_window_surface_manager.cc |
diff --git a/components/mus/ws/server_window_surface_manager.cc b/components/mus/ws/server_window_surface_manager.cc |
index eb00272255084d25fd7a56b03138c1c29d7d5130..23c259f2480ed2e738446a86d919d305449bc411 100644 |
--- a/components/mus/ws/server_window_surface_manager.cc |
+++ b/components/mus/ws/server_window_surface_manager.cc |
@@ -14,7 +14,8 @@ namespace ws { |
ServerWindowSurfaceManager::ServerWindowSurfaceManager(ServerWindow* window) |
: window_(window), |
- surface_id_allocator_(WindowIdToTransportId(window->id())), |
+ surface_id_allocator_( |
+ window->delegate()->GetSurfacesState()->next_id_namespace()), |
waiting_for_initial_frames_( |
window_->properties().count(mus::mojom::kWaitForUnderlay_Property) > |
0) { |