Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / mojo / services / test_service / test_service_application.cc
index 074e2e8..f08e183 100644 (file)
@@ -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