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

Unified Diff: services/ui/input_manager/input_manager_app.cc

Issue 1980763002: ApplicationConnection devolution, part 2.3. (Closed) Base URL: https://github.com/domokit/mojo.git@work794_app_conn_devo_2.2
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/ui/input_manager/input_manager_app.h ('k') | services/ui/launcher/launcher_app.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/input_manager/input_manager_app.cc
diff --git a/services/ui/input_manager/input_manager_app.cc b/services/ui/input_manager/input_manager_app.cc
index b6adffb4b306ff19d7a4fb9edbd09421dc39bdd7..0d2917de8dfcfbe61845f84426f517871b150395 100644
--- a/services/ui/input_manager/input_manager_app.cc
+++ b/services/ui/input_manager/input_manager_app.cc
@@ -34,14 +34,14 @@ void InputManagerApp::Initialize(mojo::ApplicationImpl* app_impl) {
bool InputManagerApp::ConfigureIncomingConnection(
mojo::ApplicationConnection* connection) {
- connection->AddService<mojo::ui::ViewAssociate>(this);
+ connection->GetServiceProviderImpl().AddService<mojo::ui::ViewAssociate>(
+ [this](const mojo::ConnectionContext& connection_context,
+ mojo::InterfaceRequest<mojo::ui::ViewAssociate>
+ view_associate_request) {
+ input_associates_.AddBinding(new InputAssociate(),
+ view_associate_request.Pass());
+ });
return true;
}
-void InputManagerApp::Create(
- const mojo::ConnectionContext& connection_context,
- mojo::InterfaceRequest<mojo::ui::ViewAssociate> request) {
- input_associates.AddBinding(new InputAssociate(), request.Pass());
-}
-
} // namespace input_manager
« no previous file with comments | « services/ui/input_manager/input_manager_app.h ('k') | services/ui/launcher/launcher_app.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698