Chromium Code Reviews| 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..0718802e5d6c9da2aff6de164e0ca1ce6952c020 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" |
| @@ -51,9 +53,9 @@ class ChildGLApp : public ApplicationDelegate, public InterfaceFactory<Child> { |
| } // namespace examples |
|
sky
2014/08/22 22:20:09
nit: remove 55 (just line 15/16 don't have a newli
|
| -// static |
| -ApplicationDelegate* ApplicationDelegate::Create() { |
| - return new examples::ChildGLApp(); |
| -} |
| - |
| } // namespace mojo |
| + |
| +MojoResult MojoMain(MojoHandle shell_handle) { |
| + mojo::ApplicationRunnerChromium runner(new mojo::examples::ChildGLApp); |
| + return runner.Run(shell_handle); |
| +} |