| // Copyright 2015 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "mojo/public/c/system/main.h" |
| #include "mojo/public/cpp/application/application_connection.h" |
| #include "mojo/public/cpp/application/application_runner.h" |
| |
| #include "network_service_delegate.h" |
| |
| MojoResult MojoMain(MojoHandle shell_handle) { |
| mojo::ApplicationRunner runner( |
| std::unique_ptr<NetworkServiceDelegate>(new NetworkServiceDelegate())); |
| return runner.Run(shell_handle); |
| } |