Index: mojo/services/view_manager/main.cc |
diff --git a/mojo/services/view_manager/main.cc b/mojo/services/view_manager/main.cc |
index d5115055fc772e4b47b3880458051c1d5eb02291..3a809969c11371796551dcd99d48c88de3daf74c 100644 |
--- a/mojo/services/view_manager/main.cc |
+++ b/mojo/services/view_manager/main.cc |
@@ -10,19 +10,26 @@ namespace mojo { |
namespace view_manager { |
namespace service { |
-class ViewManagerApp : public ApplicationDelegate { |
+class ViewManagerApp : public ApplicationDelegate, |
+ public InterfaceFactory<ViewManagerInitService> { |
public: |
ViewManagerApp() {} |
virtual ~ViewManagerApp() {} |
- virtual bool ConfigureIncomingConnection(ApplicationConnection* connection) |
- MOJO_OVERRIDE { |
+ virtual bool ConfigureIncomingConnection( |
+ ApplicationConnection* connection) OVERRIDE { |
// TODO(sky): this needs some sort of authentication as well as making sure |
// we only ever have one active at a time. |
- connection->AddService<ViewManagerInitServiceImpl>(); |
+ connection->AddService(this); |
return true; |
} |
+ virtual void Create( |
+ ApplicationConnection* connection, |
+ InterfaceRequest<ViewManagerInitService> request) OVERRIDE { |
+ BindToRequest(new ViewManagerInitServiceImpl(connection), &request); |
+ } |
+ |
private: |
DISALLOW_COPY_AND_ASSIGN(ViewManagerApp); |
}; |