diff options
Diffstat (limited to 'mojo/services/view_manager/main.cc')
-rw-r--r-- | mojo/services/view_manager/main.cc | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/mojo/services/view_manager/main.cc b/mojo/services/view_manager/main.cc index de0a768..d511505 100644 --- a/mojo/services/view_manager/main.cc +++ b/mojo/services/view_manager/main.cc @@ -2,22 +2,25 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "mojo/public/cpp/application/application.h" +#include "mojo/public/cpp/application/application_connection.h" +#include "mojo/public/cpp/application/application_delegate.h" #include "mojo/services/view_manager/view_manager_init_service_impl.h" namespace mojo { namespace view_manager { namespace service { -class ViewManagerApp : public Application { +class ViewManagerApp : public ApplicationDelegate { public: ViewManagerApp() {} virtual ~ViewManagerApp() {} - virtual void Initialize() MOJO_OVERRIDE { + virtual bool ConfigureIncomingConnection(ApplicationConnection* connection) + MOJO_OVERRIDE { // TODO(sky): this needs some sort of authentication as well as making sure // we only ever have one active at a time. - AddService<ViewManagerInitServiceImpl>(service_provider()); + connection->AddService<ViewManagerInitServiceImpl>(); + return true; } private: @@ -28,7 +31,7 @@ class ViewManagerApp : public Application { } // namespace view_manager // static -Application* Application::Create() { +ApplicationDelegate* ApplicationDelegate::Create() { return new mojo::view_manager::service::ViewManagerApp(); } |