| Index: remoting/client/jni/chromoting_jni_runtime.cc
|
| diff --git a/remoting/client/jni/chromoting_jni_runtime.cc b/remoting/client/jni/chromoting_jni_runtime.cc
|
| index 1505e441aeba54c9e7dfe49bb957f38b6af6b0dc..c5816538ed1fe6d767f2b5a34bf89ddd901e0dd1 100644
|
| --- a/remoting/client/jni/chromoting_jni_runtime.cc
|
| +++ b/remoting/client/jni/chromoting_jni_runtime.cc
|
| @@ -14,6 +14,7 @@
|
| #include "base/memory/singleton.h"
|
| #include "base/stl_util.h"
|
| #include "base/synchronization/waitable_event.h"
|
| +#include "base/task_scheduler/task_scheduler.h"
|
| #include "jni/JniInterface_jni.h"
|
| #include "remoting/base/chromium_url_request.h"
|
| #include "remoting/base/url_request_context_getter.h"
|
| @@ -42,6 +43,10 @@ bool RegisterChromotingJniRuntime(JNIEnv* env) {
|
| static void LoadNative(JNIEnv* env, const JavaParamRef<jclass>& clazz) {
|
| base::CommandLine::Init(0, nullptr);
|
|
|
| + // TODO(sergeyu): Consider adding separate pools for different task classes.
|
| + const int kMaxBackgroundThreads = 5;
|
| + base::TaskScheduler::CreateAndSetSimpleTaskScheduler(kMaxBackgroundThreads);
|
| +
|
| // Create the singleton now so that the Chromoting threads will be set up.
|
| remoting::ChromotingJniRuntime::GetInstance();
|
| }
|
|
|