| Index: mojo/services/test_service/test_service_application.cc
|
| diff --git a/mojo/services/test_service/test_service_application.cc b/mojo/services/test_service/test_service_application.cc
|
| index 074e2e8dedba300e308eef502b43142c7101ee5e..9efea239827507d07fb2dd3253d43fc608d14cef 100644
|
| --- a/mojo/services/test_service/test_service_application.cc
|
| +++ b/mojo/services/test_service/test_service_application.cc
|
| @@ -7,6 +7,8 @@
|
| #include <assert.h>
|
|
|
| #include "mojo/public/cpp/application/application_connection.h"
|
| +#include "mojo/public/cpp/application/application_export.h"
|
| +#include "mojo/public/cpp/application/application_runner.h"
|
| #include "mojo/public/cpp/utility/run_loop.h"
|
| #include "mojo/services/test_service/test_service_impl.h"
|
| #include "mojo/services/test_service/test_time_service_impl.h"
|
| @@ -50,10 +52,11 @@ void TestServiceApplication::ReleaseRef() {
|
| }
|
|
|
| } // namespace test
|
| +} // namespace mojo
|
|
|
| -// static
|
| -ApplicationDelegate* ApplicationDelegate::Create() {
|
| - return new mojo::test::TestServiceApplication();
|
| +extern "C" APPLICATION_EXPORT MojoResult CDECL MojoMain(
|
| + MojoHandle shell_handle) {
|
| + mojo::ApplicationRunner app;
|
| + app.take_delegate(new mojo::test::TestServiceApplication);
|
| + return app.Run(shell_handle);
|
| }
|
| -
|
| -} // namespace mojo
|
|
|