| Index: services/service_manager/public/cpp/standalone_service/main.cc
|
| diff --git a/services/service_manager/public/cpp/standalone_service/main.cc b/services/service_manager/public/cpp/standalone_service/main.cc
|
| index 717fe48188cf787dfd5a57d4ff6cb985613791c5..6d34578a443b1b39af56b91f114b892a91ffc154 100644
|
| --- a/services/service_manager/public/cpp/standalone_service/main.cc
|
| +++ b/services/service_manager/public/cpp/standalone_service/main.cc
|
| @@ -2,6 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| +#include "services/service_manager/public/c/main.h"
|
| #include "base/at_exit.h"
|
| #include "base/command_line.h"
|
| #include "base/debug/stack_trace.h"
|
| @@ -9,7 +10,7 @@
|
| #include "base/logging.h"
|
| #include "base/macros.h"
|
| #include "base/process/launch.h"
|
| -#include "services/service_manager/public/c/main.h"
|
| +#include "base/task_scheduler/task_scheduler.h"
|
| #include "services/service_manager/public/cpp/standalone_service/standalone_service.h"
|
| #include "services/service_manager/public/cpp/standalone_service/switches.h"
|
| #include "services/service_manager/public/interfaces/service.mojom.h"
|
| @@ -53,6 +54,11 @@ int main(int argc, char** argv) {
|
|
|
| service_manager::WaitForDebuggerIfNecessary();
|
|
|
| + base::TaskScheduler::CreateAndStartWithDefaultParams("StandaloneService");
|
| +
|
| service_manager::RunStandaloneService(base::Bind(&RunServiceMain));
|
| +
|
| + base::TaskScheduler::GetInstance()->Shutdown();
|
| +
|
| return 0;
|
| }
|
|
|