| Index: mojo/examples/surfaces_app/child_gl_app.cc
|
| diff --git a/mojo/examples/surfaces_app/child_gl_app.cc b/mojo/examples/surfaces_app/child_gl_app.cc
|
| index ae6ca0c4d78519bcb1628571ee433e59c3ec583e..230948d053d0dd9bb9b65bce7cf1b7f3a7a41b1f 100644
|
| --- a/mojo/examples/surfaces_app/child_gl_app.cc
|
| +++ b/mojo/examples/surfaces_app/child_gl_app.cc
|
| @@ -4,9 +4,11 @@
|
|
|
| #include "base/threading/platform_thread.h"
|
| #include "mojo/examples/surfaces_app/child_gl_impl.h"
|
| +#include "mojo/public/c/system/main.h"
|
| #include "mojo/public/cpp/application/application_connection.h"
|
| #include "mojo/public/cpp/application/application_delegate.h"
|
| #include "mojo/public/cpp/application/application_impl.h"
|
| +#include "mojo/public/cpp/application/application_runner_chromium.h"
|
| #include "mojo/public/cpp/bindings/string.h"
|
| #include "mojo/services/public/interfaces/gpu/gpu.mojom.h"
|
|
|
| @@ -50,10 +52,9 @@ class ChildGLApp : public ApplicationDelegate, public InterfaceFactory<Child> {
|
| };
|
|
|
| } // namespace examples
|
| +} // namespace mojo
|
|
|
| -// static
|
| -ApplicationDelegate* ApplicationDelegate::Create() {
|
| - return new examples::ChildGLApp();
|
| +MojoResult MojoMain(MojoHandle shell_handle) {
|
| + mojo::ApplicationRunnerChromium runner(new mojo::examples::ChildGLApp);
|
| + return runner.Run(shell_handle);
|
| }
|
| -
|
| -} // namespace mojo
|
|
|