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..f08e1833e0d00e47f6b0a95703ef6cbcaed80b93 100644 |
--- a/mojo/services/test_service/test_service_application.cc |
+++ b/mojo/services/test_service/test_service_application.cc |
@@ -6,7 +6,9 @@ |
#include <assert.h> |
+#include "mojo/public/c/system/main.h" |
#include "mojo/public/cpp/application/application_connection.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,9 @@ void TestServiceApplication::ReleaseRef() { |
} |
} // namespace test |
+} // namespace mojo |
-// static |
-ApplicationDelegate* ApplicationDelegate::Create() { |
- return new mojo::test::TestServiceApplication(); |
+MojoResult MojoMain(MojoHandle shell_handle) { |
+ mojo::ApplicationRunner runner(new mojo::test::TestServiceApplication); |
+ return runner.Run(shell_handle); |
} |
- |
-} // namespace mojo |