| Index: mojo/shell/view_manager_loader.cc
|
| diff --git a/mojo/shell/view_manager_loader.cc b/mojo/shell/view_manager_loader.cc
|
| index e41a87469d84614b97105d4eab0f157f4d3a7260..8e4ab3ccec96a89de434393314bfc45168abe31d 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() {
|
| @@ -34,9 +38,15 @@ void ViewManagerLoader::OnServiceError(ServiceManager* manager,
|
|
|
| bool ViewManagerLoader::ConfigureIncomingConnection(
|
| mojo::ApplicationConnection* connection) {
|
| - connection->AddService<view_manager::service::ViewManagerInitServiceImpl>();
|
| + connection->AddServiceFactory(this);
|
| return true;
|
| }
|
|
|
| +void ViewManagerLoader::Create(
|
| + ApplicationConnection* connection,
|
| + InterfaceRequest<ViewManagerInitService> request) {
|
| + mojo::BindToRequest(new ViewManagerInitServiceImpl(connection), &request);
|
| +}
|
| +
|
| } // namespace shell
|
| } // namespace mojo
|
|
|