diff options
Diffstat (limited to 'mojo/shell')
-rw-r--r-- | mojo/shell/view_manager_loader.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mojo/shell/view_manager_loader.cc b/mojo/shell/view_manager_loader.cc index c590dd7..cd24638 100644 --- a/mojo/shell/view_manager_loader.cc +++ b/mojo/shell/view_manager_loader.cc @@ -25,8 +25,10 @@ void ViewManagerLoader::LoadService(ServiceManager* manager, root_node_manager_.reset( new view_manager::service::RootNodeManager(app->shell())); } - app->AddService<view_manager::service::ViewManagerConnection>( - root_node_manager_.get()); + app->AddServiceConnector( + new ServiceConnector<view_manager::service::ViewManagerConnection, + view_manager::service::RootNodeManager>( + root_node_manager_.get())); apps_.push_back(app.release()); } |