| Index: remoting/host/remoting_me2me_host.cc
|
| diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc
|
| index aaae9dbd264bb4e4615281c94a4e4f159cfb090d..73c87aa92cffd7b9074d6df58830f9b05c08a353 100644
|
| --- a/remoting/host/remoting_me2me_host.cc
|
| +++ b/remoting/host/remoting_me2me_host.cc
|
| @@ -26,6 +26,7 @@
|
| #include "base/strings/string_util.h"
|
| #include "base/strings/stringize_macros.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| +#include "base/task_scheduler/task_scheduler.h"
|
| #include "build/build_config.h"
|
| #include "components/policy/policy_constants.h"
|
| #include "ipc/ipc_channel.h"
|
| @@ -1641,6 +1642,10 @@ int HostProcessMain() {
|
| base::GetLinuxDistro();
|
| #endif
|
|
|
| + // TODO(sergeyu): Consider adding separate pools for different task classes.
|
| + const int kMaxBackgroundThreads = 5;
|
| + base::TaskScheduler::CreateAndSetSimpleTaskScheduler(kMaxBackgroundThreads);
|
| +
|
| // Create the main message loop and start helper threads.
|
| base::MessageLoopForUI message_loop;
|
| std::unique_ptr<ChromotingHostContext> context =
|
|
|