Jeff Brown | c8bbaed | 2016-01-26 15:52:26 -0800 | [diff] [blame] | 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 |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "examples/ui/noodles/noodles_app.h" |
Viet-Trung Luu | 8f8c215 | 2016-05-31 13:11:00 -0700 | [diff] [blame^] | 6 | #include "mojo/environment/scoped_chromium_init.h" |
Jeff Brown | c8bbaed | 2016-01-26 15:52:26 -0800 | [diff] [blame] | 7 | #include "mojo/public/c/system/main.h" |
Viet-Trung Luu | 8f8c215 | 2016-05-31 13:11:00 -0700 | [diff] [blame^] | 8 | #include "mojo/public/cpp/application/run_application.h" |
Jeff Brown | c8bbaed | 2016-01-26 15:52:26 -0800 | [diff] [blame] | 9 | |
| 10 | MojoResult MojoMain(MojoHandle application_request) { |
Viet-Trung Luu | 8f8c215 | 2016-05-31 13:11:00 -0700 | [diff] [blame^] | 11 | mojo::ScopedChromiumInit init; |
| 12 | examples::NoodlesApp noodles_app; |
| 13 | return mojo::RunApplication(application_request, &noodles_app); |
Jeff Brown | c8bbaed | 2016-01-26 15:52:26 -0800 | [diff] [blame] | 14 | } |