Commit d009777f authored by alokp's avatar alokp Committed by Commit bot

mojo: Fixed mojo_example_apptests.

It broke in r291039.

Review URL: https://codereview.chromium.org/500593002

Cr-Commit-Position: refs/heads/master@{#291710}
parent c1b22e31
......@@ -4,7 +4,9 @@
#include "mojo/examples/apptest/example_service_application.h"
#include "mojo/public/c/system/main.h"
#include "mojo/public/cpp/application/application_connection.h"
#include "mojo/public/cpp/application/application_runner.h"
namespace mojo {
......@@ -18,9 +20,9 @@ bool ExampleServiceApplication::ConfigureIncomingConnection(
return true;
}
// static
ApplicationDelegate* ApplicationDelegate::Create() {
return new ExampleServiceApplication();
}
} // namespace mojo
MojoResult MojoMain(MojoHandle shell_handle) {
mojo::ApplicationRunner runner(new mojo::ExampleServiceApplication());
return runner.Run(shell_handle);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment