| Index: mojo/examples/surfaces_app/child_app.cc
|
| diff --git a/mojo/examples/surfaces_app/child_app.cc b/mojo/examples/surfaces_app/child_app.cc
|
| index 215f496caec51e7d54ec69106e69e5013c278de3..8ad08fc18bbc8c653f5a6c79ec14c8503166e1c7 100644
|
| --- a/mojo/examples/surfaces_app/child_app.cc
|
| +++ b/mojo/examples/surfaces_app/child_app.cc
|
| @@ -3,9 +3,11 @@
|
| // found in the LICENSE file.
|
|
|
| #include "mojo/examples/surfaces_app/child_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"
|
|
|
| namespace mojo {
|
| @@ -41,10 +43,9 @@ class ChildApp : public ApplicationDelegate, public InterfaceFactory<Child> {
|
| };
|
|
|
| } // namespace examples
|
| +} // namespace mojo
|
|
|
| -// static
|
| -ApplicationDelegate* ApplicationDelegate::Create() {
|
| - return new examples::ChildApp();
|
| +MojoResult MojoMain(MojoHandle shell_handle) {
|
| + mojo::ApplicationRunnerChromium runner(new mojo::examples::ChildApp);
|
| + return runner.Run(shell_handle);
|
| }
|
| -
|
| -} // namespace mojo
|
|
|