OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This is the "main" for the embeddable Moterm terminal view, which provides | 5 // This is the "main" for the embeddable Moterm terminal view, which provides |
6 // services to the thing embedding it. (This is not very useful as a "top-level" | 6 // services to the thing embedding it. (This is not very useful as a "top-level" |
7 // application.) | 7 // application.) |
8 | 8 |
9 #include "apps/moterm/moterm_app.h" | 9 #include "apps/moterm/moterm_app.h" |
10 #include "mojo/application/application_runner_chromium.h" | 10 #include "mojo/environment/scoped_chromium_init.h" |
11 #include "mojo/public/c/system/main.h" | 11 #include "mojo/public/c/system/main.h" |
| 12 #include "mojo/public/cpp/application/run_application.h" |
12 | 13 |
13 MojoResult MojoMain(MojoHandle application_request) { | 14 MojoResult MojoMain(MojoHandle application_request) { |
14 mojo::ApplicationRunnerChromium runner(new MotermApp()); | 15 mojo::ScopedChromiumInit init; |
15 return runner.Run(application_request); | 16 MotermApp moterm_app; |
| 17 return mojo::RunApplication(application_request, &moterm_app); |
16 } | 18 } |
OLD | NEW |