Index: mojo/services/surfaces/surfaces_service_application.cc |
diff --git a/mojo/services/surfaces/surfaces_service_application.cc b/mojo/services/surfaces/surfaces_service_application.cc |
index 9c9e3f857fca0f1803c26f557f5aee87a57c6a04..0bc440b73700bb85f1a420e3d1a3e725e3a2a68d 100644 |
--- a/mojo/services/surfaces/surfaces_service_application.cc |
+++ b/mojo/services/surfaces/surfaces_service_application.cc |
@@ -18,16 +18,14 @@ SurfacesServiceApplication::~SurfacesServiceApplication() { |
bool SurfacesServiceApplication::ConfigureIncomingConnection( |
ApplicationConnection* connection) { |
- connection->AddService<SurfacesImpl, SurfacesImpl::Context>(this); |
+ connection->AddService(this); |
return true; |
} |
-cc::SurfaceManager* SurfacesServiceApplication::Manager() { |
- return &manager_; |
-} |
- |
-uint32_t SurfacesServiceApplication::IdNamespace() { |
- return next_id_namespace_++; |
+void SurfacesServiceApplication::Create(ApplicationConnection* connection, |
+ InterfaceRequest<Surface> request) { |
+ BindToRequest(new SurfacesImpl(&manager_, next_id_namespace_++, this), |
+ &request); |
} |
void SurfacesServiceApplication::FrameSubmitted() { |