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

Unified Diff: services/gfx/compositor/compositor_app.cc

Issue 1981513002: ApplicationConnection devolution, part 2.2. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 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 | « services/gfx/compositor/compositor_app.h ('k') | services/http_server/http_server_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/gfx/compositor/compositor_app.cc
diff --git a/services/gfx/compositor/compositor_app.cc b/services/gfx/compositor/compositor_app.cc
index a85b0f92bc6cbe4428062fc2368a718947676744..858c4434269a2baa9e03992bd4b5546a8fad9cc1 100644
--- a/services/gfx/compositor/compositor_app.cc
+++ b/services/gfx/compositor/compositor_app.cc
@@ -36,15 +36,15 @@ void CompositorApp::Initialize(mojo::ApplicationImpl* app_impl) {
bool CompositorApp::ConfigureIncomingConnection(
mojo::ApplicationConnection* connection) {
- connection->AddService<mojo::gfx::composition::Compositor>(this);
+ connection->GetServiceProviderImpl()
+ .AddService<mojo::gfx::composition::Compositor>(
+ [this](const mojo::ConnectionContext& connection_context,
+ mojo::InterfaceRequest<mojo::gfx::composition::Compositor>
+ compositor_request) {
+ compositor_bindings_.AddBinding(new CompositorImpl(engine_.get()),
+ compositor_request.Pass());
+ });
return true;
}
-void CompositorApp::Create(
- const mojo::ConnectionContext& connection_context,
- mojo::InterfaceRequest<mojo::gfx::composition::Compositor> request) {
- compositor_bindings_.AddBinding(new CompositorImpl(engine_.get()),
- request.Pass());
-}
-
} // namespace compositor
« no previous file with comments | « services/gfx/compositor/compositor_app.h ('k') | services/http_server/http_server_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698