Index: components/exo/surface.cc |
diff --git a/components/exo/surface.cc b/components/exo/surface.cc |
index f4851060c1f1466befacc854585b927ac2890368..f814f77ae5b542c8a85bac530aced073394a0235 100644 |
--- a/components/exo/surface.cc |
+++ b/components/exo/surface.cc |
@@ -210,10 +210,12 @@ Surface::Surface() |
window_->SetEventTargeter(base::WrapUnique(new CustomWindowTargeter)); |
window_->set_owned_by_parent(false); |
factory_owner_->surface_ = this; |
+ uint32_t client_id = |
+ aura::Env::GetInstance()->context_factory()->AllocateSurfaceClientId(); |
factory_owner_->id_allocator_ = |
- aura::Env::GetInstance()->context_factory()->CreateSurfaceIdAllocator(); |
- factory_owner_->surface_factory_.reset( |
- new cc::SurfaceFactory(surface_manager_, factory_owner_.get())); |
+ base::WrapUnique(new cc::SurfaceIdAllocator(client_id)); |
+ factory_owner_->surface_factory_.reset(new cc::SurfaceFactory( |
+ client_id, surface_manager_, factory_owner_.get())); |
aura::Env::GetInstance()->context_factory()->AddObserver(this); |
} |