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..11c0d071fe634a5f9c0418a60081e7bfb9b1014f 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,10 @@ 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) { |
+ return mojo::ApplicationRunner(new mojo::test::TestServiceApplication) |
+ .Run(shell_handle); |
} |
- |
-} // namespace mojo |