summaryrefslogtreecommitdiffstats
path: root/mojo/shell/view_manager_loader.cc
diff options
context:
space:
mode:
Diffstat (limited to 'mojo/shell/view_manager_loader.cc')
-rw-r--r--mojo/shell/view_manager_loader.cc14
1 files changed, 12 insertions, 2 deletions
diff --git a/mojo/shell/view_manager_loader.cc b/mojo/shell/view_manager_loader.cc
index e41a874..6b93eac 100644
--- a/mojo/shell/view_manager_loader.cc
+++ b/mojo/shell/view_manager_loader.cc
@@ -9,6 +9,10 @@
#include "mojo/services/view_manager/view_manager_init_service_impl.h"
namespace mojo {
+
+using view_manager::ViewManagerInitService;
+using view_manager::service::ViewManagerInitServiceImpl;
+
namespace shell {
ViewManagerLoader::ViewManagerLoader() {
@@ -33,10 +37,16 @@ void ViewManagerLoader::OnServiceError(ServiceManager* manager,
}
bool ViewManagerLoader::ConfigureIncomingConnection(
- mojo::ApplicationConnection* connection) {
- connection->AddService<view_manager::service::ViewManagerInitServiceImpl>();
+ ApplicationConnection* connection) {
+ connection->AddService(this);
return true;
}
+void ViewManagerLoader::Create(
+ ApplicationConnection* connection,
+ InterfaceRequest<ViewManagerInitService> request) {
+ BindToRequest(new ViewManagerInitServiceImpl(connection), &request);
+}
+
} // namespace shell
} // namespace mojo