| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "base/macros.h" | 5 #include "base/macros.h" |
| 6 #include "base/message_loop/message_loop.h" |
| 6 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
| 7 #include "mojo/public/cpp/bindings/binding_set.h" | 8 #include "mojo/public/cpp/bindings/binding_set.h" |
| 8 #include "services/service_manager/public/c/main.h" | 9 #include "services/service_manager/public/c/main.h" |
| 9 #include "services/service_manager/public/cpp/binder_registry.h" | 10 #include "services/service_manager/public/cpp/binder_registry.h" |
| 10 #include "services/service_manager/public/cpp/connector.h" | 11 #include "services/service_manager/public/cpp/connector.h" |
| 11 #include "services/service_manager/public/cpp/service.h" | 12 #include "services/service_manager/public/cpp/service.h" |
| 12 #include "services/service_manager/public/cpp/service_context.h" | 13 #include "services/service_manager/public/cpp/service_context.h" |
| 13 #include "services/service_manager/public/cpp/service_runner.h" | 14 #include "services/service_manager/public/cpp/service_runner.h" |
| 14 #include "services/service_manager/tests/shutdown/shutdown_unittest.mojom.h" | 15 #include "services/service_manager/tests/shutdown/shutdown_unittest.mojom.h" |
| 15 | 16 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 66 |
| 66 DISALLOW_COPY_AND_ASSIGN(ShutdownClientApp); | 67 DISALLOW_COPY_AND_ASSIGN(ShutdownClientApp); |
| 67 }; | 68 }; |
| 68 | 69 |
| 69 } // namespace service_manager | 70 } // namespace service_manager |
| 70 | 71 |
| 71 MojoResult ServiceMain(MojoHandle service_request_handle) { | 72 MojoResult ServiceMain(MojoHandle service_request_handle) { |
| 72 service_manager::ServiceRunner runner(new service_manager::ShutdownClientApp); | 73 service_manager::ServiceRunner runner(new service_manager::ShutdownClientApp); |
| 73 return runner.Run(service_request_handle); | 74 return runner.Run(service_request_handle); |
| 74 } | 75 } |
| OLD | NEW |